The Git tag for this section is react-router. It contains solutions to the exercises from the previous chapter, so if you haven't completed the Exercises section yourself, then you should move to this tag now so that you're up to date.
For more detailed instructions, see the To get the most out of this book section in the Preface.
If you'd like to use this chapter as a reference, you can view my version in react-router-complete.
For more detailed instructions, see the To get the most out of this book section in the Preface.
If you'd like to use this chapter as a reference, you can view my version in react-router-complete.
- Attempt the refactor to React Router yourself. Try to keep as many tests as possible green while you work by making use of side-by-side implementations.
- Refactor convertParams to be a generalized function that works for all parameters. You will need to think of a set of rules under which values should be converted to different data types. Both integer and array conversion should be supported, as in our version.
- Move the new...