View on GitHub

reading-notes

https://samahabujwaied.github.io/reading-notes/

Why do we not need more .html pages in a multi-page React app?

create-react-app provides a great starting point to start a new react app fully configured with webpack, live reloading, etc. But, sadly, it doesn’t provide a way to provide different index files with a different set of entry points.

If we wanted a component to show up on every page, where would we put it and why?

Inside a , so we can access it

What does routing do with the components that were rendered when a new route is requested ?

What does props.children contain?

props. children does is that it is used to display whatever you include between the opening and closing tags when invoking a component. This component contains an that is receiving some props and then it is displaying {props.

How do useState() and this.setState() differ?

Term Definition
State Hook A Hook is a special function that lets you “hook into” React features. For example, useState is a Hook that lets you add React state to function components. We’ll learn other Hooks later
Mounting and Un-Mounting Mounting a file system attaches that file system to a directory (mount point) and makes it available to the system.The root ( / ) file system is always mounted. Any other file system can be connected or disconnected from the root ( / ) file system