Version
5.1.0
Test Case
https://codesandbox.io/s/jolly-field-rm0sb
Steps to reproduce
Use the children prop on a <Route /> to render a component.
Expected Behavior
Like with accessing match off of props, useParams() should return null or an empty object.
Actual Behavior
useParams errors when reading property off null.