- Each person in your group should take one of the following topics and explain it to the group in their own words. Be sure to provide concrete examples in your explanations. For the remaining topics, discuss them as a whole group.
- Node Package Manager
- Imperative vs Declarative
- Components
- JSX
- Imports and Exports
- Props
- When would you use props in react?
- Assuming UserDetail is a component, what will it's props be if it's rendered as follows:
const user = {name: 'Spider Man', age: 32}
<UserDetail title="Profile Page" dog="Fido" user={user} />
components => reuseable code blocks, write with jsx
jsx => we use when we write react
npm => library?
imports => we call our datas different place
exports => to call datas we need to export it
props => property to get components
2) is being used for passing data from one component to another.
3) {name: 'Spider Man', age: 32}