Skip to content

KunwarVSuryavanshi/react-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wut dis?

This is just simple react component where you can add and delete input field in a tree like structure. Run npm i react-tree-input to install component directly.

Add btn

This simply adds one new node under the current node.

Remove btn

Deletes the current node as well as its child node if any.

I/O str

For input and output structure refer TestComponent.js.

SS?

Image

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.

Left

Stopping addition of new node when previous one is empty.
Max depth in a node.
Accepting input as well as btn components from parent component for more customization.

About

Tried creating a simple react component and published it on npm.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published