Skip to content

VIKIVIKA/react-search-filter

Repository files navigation

react-search-filter

This is a search tree where you can provide any kind of data in data.json file and you have a search filter to retreive data when in need.

Sample Tree

    test1
  • test1.1
  • test1.2
    test2
  • test2.1
    • test2.2
    • test2.2.1
    • test2.2.2

Execution

Example Search criteria

Input: enter "test" in text box and click on search or enter "test*" in text box and click on search

Output: It will display all like below (because in output test keyword is present every where)

    test1
  • test1.1
  • test1.2
    test2
  • test2.1
    • test2.2
    • test2.2.1
    • test2.2.2

Example Search criteria2

Input: enter "test1" in text box and click on search

Output: It will display all like below (because in output test keyword is present every where)

    test1
  • test1.1
  • test1.2

Installation procedure.

  1. React and React DOM.

npm install --save react react-dom

  1. Webpack, Babel

Plese follow instructions here, https://www.codecademy.com/articles/react-setup-i, https://www.codecademy.com/articles/react-setup-ii, which i referred.

  1. ES6 Spread Operator

npm install --save-dev babel-plugin-transform-object-rest-spread refer this link for installation,

https://www.npmjs.com/package/babel-plugin-transform-object-rest-spread

  1. Redux

npm install --save redux

  1. React Router

npm install --save react-router

  1. Middlewares.

npm install --save redux-promise

npm install --save redux-thunk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published