Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 02 Properties #173

Open
brauliodiez opened this issue Dec 2, 2018 · 0 comments
Open

Update 02 Properties #173

brauliodiez opened this issue Dec 2, 2018 · 0 comments
Assignees

Comments

@brauliodiez
Copy link
Member

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants