Dynamic Menu from JSON file (React.js) nested sub menus

preview_player
Показать описание
A menu is generated using a JSON file, when we change the values in JSON file then the menus will be updated. We can use this in an application where we receive the menu options from a user and we generate menus. Framer motion is used for transition of the menus. Loops are used to generate menus. The reason why react asks for unique id for each element when we render using loops (map method), is shown here. This video is a clear explanation of the code which is already written for the previous upload in this channel.

framer motion install: npm i framer-motion
Рекомендации по теме
Комментарии
Автор

dude i can't believe it work thanks a lot man. you video is very helpful. 👍🏼

maikotoku
Автор

Can you help me, i am stuck same type of functions on a website

dmsubhajit
Автор

worst tutorial, saath sath me code karke samjha na bhai kya code likha hua bass btara hai

shrad