Dynamic sidebar menu in only 50 lines? 💯✔🔥🌡#JavaScript

Dr. Derek Austin 🥳
1 min readNov 21, 2019

But why unregister the Service Worker?

This JavaScript sidebar menu is a great example of recursion:

“Create a Modern Dynamic Sidebar Menu in React Using Recursion” by jsmanifest https://link.medium.com/pa2tVAJAM1

I love this quote:

“You will see by the end of this post that this seemingly complicated sidebar is actually under 50 lines of code. What?!” — jsmanifest

Why did you import the ServiceWorker and unregister it? You said you were trying to focus on just the component, and so how does this help?

Just curious 😊

Thanks for the nice article!

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.

Responses (1)