Skip to content

Commit 3ad3e5d

Browse files
authored
Merge pull request #127 from AurelioGomezRosales/patch-3
Update README.md
2 parents 2d3ba23 + f3f38d1 commit 3ad3e5d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

01 HelloReact/readme.md

+10
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ export const HelloComponent = () => {
6969
);
7070
}
7171
```
72+
Side note: in ES6, this can written as
73+
74+
```jsx
75+
import * as React from 'react';
76+
77+
export const HelloComponent = () => (
78+
<h2>Hello component !</h2>
79+
);
80+
81+
```
7282

7383
- Wire up this component by using `react-dom` under [./src/main.tsx](./src/main.tsx) (we have to rename this file extension from `ts` to `tsx` and replace the content).
7484

0 commit comments

Comments
 (0)