Wednesday, January 4, 2023

71/365: React Router Deep Dive Pt 1

 The React Router allows for routing capabilities in your single page React application. The REact Router DOM package has multiple types of routers including the MemoryRouter, HistoryRouter, and HashRouter. These all have specific uses, but the majority of web apps will be best served by the BrowserRouter. In the index.js file, the entire App component must be wrapped in the BrowserRouter like a context provider.  The routes of the router have to be specified between Routes tags, and Link tags are used to replace the old HTML anchor. I plan to learn more about the React Router as i continue working on this capstone project. 



No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...