Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 991 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 991 Bytes

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.