Hello!
In this video I will try to show you how to create multi level menu in React Router 6 with ReactJS and TypeScript. This menu will be configured by me for only two levels but you can easily extends it to any depth.
We will use TypeScript, React Router and Styled Components to create that.
Table of contents:
00:00 - Intro
01:52 - Defining menu items
11:52 - Defining pages for the app
19:30 - Using index files for modules
21:40 - Setting up the router and defining routes
31:30 - NoMatch route in react-router-dom
32:45 - Layout definition
41:05 - Sidebar component and current route
44:44 - Sidebar styling
48:50 - Sidebar icons
51:30 - Sidebar more styling
57:20 - Adding the label
01:01:00 - Displaying labels on hover
01:02:30 - Dynamically calculating the sidebar width (cool trick!)
#typescript #reactjs #webdevelopment #reactrouter
--------------------------------------------
You can find me here:
https://twitter.com/wojciech_bilick
https://medium.com/@wojciech.bilicki
https://github.com/wojciech-bilicki
-------------------
ignore
web design
html
web development
css
html5
css3
es6
programming
basics
tutorial
javascript
how to make a website
responsive design tutorial
web development tutorial
media queries
website from scratch
html css
responsive website tutorial
responsive web development
web developer
how to make a responsive website
how to build a website from scratch
how to build a website
build a website
How to