This is a template app for React Exercise.
Just run npm start
. App will be available at localhost:3000
.
To make debugging easier, use Chrome browser and download Redux DevTools extension for Chrome.
Create a component that displays list of people persisted in redux store. People.jsx
should display list of people in such way:
<div class='App-box'>John Doe</div>
<div class='App-box'>Foo Bar</div>
<div class='App-box'>James Bond</div>
<!-- and so on... -->
Collection of divs should be returned from a method (not render
).
In Filter.jsx
create an input, which modifies filterQuery
property in redux store. This should be done by onChange
callback. Don't use refs
or jquery
. Also, no need to use any debounce
or throttle
.
In People.jsx
in a method that renders people list, create a method that will filter people collection by query from our input. This filter should be case insensitive.
Files that should be edited:
- src/people/People.jsx
- src/people/Filter.jsx
- src/reducers/people.js
- src/reducers/index.js
- src/actions/people.js
- src/types/people.js
Do not edit any other files.
Here's how this application should work: https://gfycat.com/SimilarDefensiveCatbird
Take commented ellipsises (...) as hints where to put lines of code. Don't forget to remove unnecessary chunks of code such as unused methods and variables!.
Feel free to use lodash
in your components!