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.
This simply adds one new node under the current node.
Deletes the current node as well as its child node if any.
For input and output structure refer TestComponent.js
.
In the project directory, you can run:
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.
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.