skip to Main Content

Javascript – How to render my components in a tree structure, like default file structure in IDE using React

I have a component, which is called TreeNode, it is 1 file in my tree stucture. import React from "react"; import classes from "./TreeNode.module.css" function TreeNode({children, title}){ return( <div> <div className={classes.treeNode}> <div className={classes.treeNodeType}> <svg xmlns="http://www.w3.org/2000/svg" fill="#3B4045" x="0px" y="0px" width="20" height="20"…

VIEW QUESTION
Back To Top
Search