Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added react-is to validate the proptype for Route's component. (#6417)
* Added react-is to validate the proptype for Route's component. Removed a couple of outdated TODOs that dealt with __DEV__ The rest of the changes were done just from an npm install command React-is does add a tiny bit of size ( https://bundlephobia.com/result?p=react-is@16.5.2 ) as noted by the snapshots, but it seems like the best (and official) way to support the check. * Revert removal of __DEV__ * Updated the error message to be a little more clear about which prop is invalid. * Realized it wasn't saying what I wanted, so I just reverted it.
- Loading branch information