bradstiff / react-app-location

A package to avoid repetition with Routes and URLs, and reduce boilerplate with location param parsing in React Apps
MIT License
97 stars 8 forks source link

Yup alternative to reduce bundle size #13

Open hboisgibault opened 5 years ago

hboisgibault commented 5 years ago

Hello, Is there a way to use an alternative to Yup to define route parameters ? I don't need complex param validation for my project routes, and Yup is taking a large part of my bundle.

Is there a way to define validation without Yup, or maybe use portions of the package ? I am only using string(), required() and notRequired() functions, so Yup seems too complex.