Because we can use a React Router to connect all the other components to one App.js file
Inside <BrowserRouter/>, outside a <Route/>.
Unmounts the component
It is used to display whatever you include between the opening and closing tags when invoking a component
useState()is used for functional components. It is a react hook and does not require the creation of a classthis.setState()is used to handle/change state within a react class component.
State Hook
- A Hook is a special function that lets you “hook into” React features.
Mounting and Un-mounting
- The mount command mounts a storage device or filesystem, making it accessible and attaching it to an existing directory structure. The umount command "unmounts" a mounted filesystem, informing the system to complete any pending read or write operations, and safely detaching it