Type definition doesn't allow function to be passed into `<Match />` `children`.
kim3er opened this issue · comments
Richard Kimber commented
This should work:
<Match path="/cookie-policy">
{({ matches }) => !matches && <CookieConsent />}
</Match>
But the following error is returned:
Binding element 'matches' implicitly has an 'any' type.ts(7031)