Steps:
- Update Readme.md (and es) version
- Update code
- Check that code runs
- Go through readme ensure the sample can be build following readme steps.
Update A:
old version
import * as React from 'react';
- export const HelloComponent = () => {
+ export const HelloComponent = (props: {userName : string}) => {
return (
- <h2>Hello component !</h2>
+ <h2>Hello user: { props.userName } !</h2>
);
}
proposal
import * as React from 'react';
- export const HelloComponent = () =>
+ export const HelloComponent = (props: {userName : string}) =>
- <h2>Hello component !</h2>
+ <h2>Hello user: { props.userName } !</h2>
(same thing for the side note)