Exo
React & Redux
-
Clone repo
-
Run example
-
Create a
<Route />
that points to/faq
-
Add a React Router Link to
/faq
into<Menu />
above. -
Create
<Faq />
component that lists questions and answers- Questions/answers must be represented within a responsive
<Grid />
:- 4 Questions/answer per line on big screens
- 2 Questions/answer per line on medium screens
- 1 Questions/answer per line on small screens
- Add a button to toggle all answers visibility
- Add a dropdown to let users sort by
question
,answer
oruserName
alphabetically, ascending and descending- Update state consequently
- Add a text input to let user filter questions (min 3 chars, max 2 words)
- Update state consequently
- Perform an HTTP request to
/faq.json
, update state, then fill up the FAQ with data.
- Questions/answers must be represented within a responsive
-
Add a form allowing user to add a new question/answer.
- Make for inputs controlled
- As user types, replace
o
's with0
's
-
Make both routes load asynchronously