/tree-component

Simple Tree component based on ReactJS

Primary LanguageTypeScriptMIT LicenseMIT

Tree Component

Simple Tree component based on ReactJS

Stack

  • ReactJS
  • React Query
  • TypeScript
  • CSS Modules

Commands

  • npm run build - building the app
  • npm run lint - linting of the app. With addional param like :js or :css you can lint specific files.
  • npm run start - run dev server.

Usage

The data is getting by mocked request. After request the data will store in useTree hook.

The main page has tree elements:

  • Search - helps to find tree branch or node by title field.
  • Id's - allows to you find branch or node by Id.
  • Tree - full tree. There is also shows result of searching by id or title.