Skip to content

Commit 808ce87

Browse files
committed
Add react componant template
1 parent edaaefc commit 808ce87

File tree

7 files changed

+33
-15
lines changed

7 files changed

+33
-15
lines changed

developer-templates/react/component-ts/ComponentTemplate/ComponentTemplate.module.css

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from "react";
2+
import { ComponentTemplate } from "./ComponentTemplate";
3+
4+
it("Link changes the class when hovered", () => {
5+
const Dom = render(<ComponentTemplate />);
6+
//const emailField: any = Dom.getByTestId("email").querySelector("input");
7+
// fireEvent.change(emailField, {
8+
// target: { value: "dinukasaminda@gmail.com" },
9+
// });
10+
//fireEvent.click(Dom.getByTestId("submitButton"));
11+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React, {FunctionComponent} from 'react';
2+
import styles from "./ComponentTemplate.module.css";
3+
4+
type ComponentTemplateProps = {
5+
id: string,
6+
name: string
7+
};
8+
9+
/***
10+
* ComponentTemplate component.
11+
* @param id -
12+
* @param name -
13+
* returns a ComponentTemplate with :TODO
14+
*/
15+
16+
const ComponentTemplate: FunctionComponent<ComponentTemplateProps> = ({id, name}) => {
17+
return (<div>
18+
</div>);
19+
};
20+
21+
export default ComponentTemplate;

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const fs = require('fs');

templates/react/ComponentTemplate/ComponentTemplate.tsx

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)