Repo created created for the workshop given as part of the BeCode web development training
- Architect your React project
- Use React
- Component function
- Seen hooks : useState, useEffect
- Transform your React application into a Single Page Application
- Install and use React Router 6
- Seen components :
<BrowserRouter>
,<Routes>
,<Route>
,<Link>
,<Outlet>
,<NavLink>
- Seen hooks : useMatch, useParams
- Seen components :
-
Set up
- First step : install React
- Second step : architect the project
-
React Router
-
Create different routes
- First step : connect the URL
- Second step : build the routes
-
Create a component Layout and use
<Outlet>
-
Styling header items with
<NavLink>
or by creating a component- First step :
<NavLink>
- Second step : create a
<CustomLink>
component
- First step :
-
Create sub-routes
- First step: import dummy articles with useState and useEffect
- Second step: create a Singlepage and its corresponding route
- Third step: useParams
- Fourth step: add the possibility to create an article
- Fifth step: add the possibility to edit articles
Used API : https://jsonplaceholder.typicode.com/posts