Skip to content

Commit

Permalink
update readme class 02 components
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanuelQuintino committed Dec 7, 2023
1 parent 9b268b1 commit af36caa
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 6-React/class-02-components/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
# Class 02 Components

## Component

- props
- types

## TypeScript

- static
- inference
- generics
- compilation

```ts
type User = {
name: string;
age: number;
};

function user(user: User) {
console.log(user);
console.log(user.name);
console.log(user.age);
}

user({ name: "Emanuel", age: 30 });
```

0 comments on commit af36caa

Please sign in to comment.