Yes. Yup provides a friendly API for declaring the location schema. The schema is leveraged to validate that a route-matching URL has all required parameters (including query-string parameters), and that they can be coerced to the appropriate types. It is used in a similar way to validate the parameter object you provide when requesting to generate a URL or Link.
I would avoid publishing a component that depends on Redux. Can you refactor your component to simply use React’s internal state API? Or can you let the hosting app manage the Redux store, and pass relevant state and actions as props to the component?
Yep. Babel 7 is out, which is brought into the picture by Babel Loader 8. I should have specified the version in my instructions.
The fix is to run
npm install firstname.lastname@example.org but because of the other changes you mentioned above, it might be best to start over.
I updated the instructions in the article.
No, prop-types would be a regular dependency, e.g., npm i prop-types — save. You can consider it as an implementation detail. Meanwhile, devDependencies are dependencies that are only needed in development, like linters, test suites, etc.
peerDependencies are things that your package’s interface depends on, e.g., React in our case.