New component in Navbar, React

Multi tool use


New component in Navbar, React
I'm working on a site where users can draw on an empty canvas (doodle component
). I want to create a sidebar that will have a '+' link that a user can click on to create a new doodle component
or folder that will house multiple components. Ultimately, I would like a user to have folders and and subfolders of their doodles. I would like the file structure to mimic that of the screenshot below. What would be the best way of going about this. I am considering using react router to accomplish this but was wondering if there are alternatives out there that I may be missing? Any suggestions will be appreciated. Thanks.
doodle component
doodle component
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
If you want the user to go back and forth between doodles, you could use router. Otherwise you could just use the component's state to clean the current doodle and start with a new one. A bit more info would be great to get a better idea.
– Rodrigo
19 mins ago