Read the React Quick Start quide, to refresh your memory on React.
What are the building blocks of a React app?
What is the difference between an HTML element and a React component?
What is JSX and why do we use it?
React.createElement()
. We use JSX because it allows us to write HTML elements in JavaScript and place them in the DOM without using React.createElement()
. JSX is also easier to read and write than JavaScript.Describe the process of embedding JavaScript expressions in JSX.
{1 + 1}
. If we wanted to embed a JavaScript expression that calls a function, we would write {myFunction()}
. If we wanted to embed a JavaScript expression that calls a function and passes in a parameter, we would write {myFunction(myParameter)}
.Does React or JSX have any special features for iteration or conditional logic?
map()
. The map()
method creates a new array with the results of calling a provided function on every element in the calling array. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements. The map()
method is used to iterate over an array of data and return a new array of React elements.How does React know to respond to a user’s inputs?
What word indicates that a React component manages data with a Hook?
useState
indicates that a React component manages data with a Hook.How can two react components share data?
What are the three steps of refreshing a React UI?
How do you trigger updates to a component after the initial render?
setState()
.Does React recreate DOM nodes on every rerender?
After React has updated the DOM, what still needs to happen before the user sees the change?
Note the naming conventions in the AirBnB React/JSX Style Guide. What patterns do you see?
Looking ahead at this module’s Course Schedule, what do you look forward to learning?
What are your learning goals after reading the the Class README?