- 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} />
1-a. is a managment tool so we can use it in our application to input some packages like libraries on frameworks.
1-b. Declarative programming is a programming paradigm … that expresses the logic of a computation without describing its control flow. Imperative programming is a programming paradigm that uses statements that change a program's state.
1-c. Reusable peices of code.
1-d. JSX stands for JavaScript XML. JSX allows us to write HTML in React. JSX makes it easier to write and add HTML in React.
1-e. Importing allows using contents from another file, whereas exporting makes the file contents eligible for importing.
1-c. Props are arguments passed into React components.