Skip to content

Update 02 Properties #173

@brauliodiez

Description

@brauliodiez

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions