Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & { url?: Url | undefined; async?: boolean | undefined; } & MemoryRouterEventHandlers'.
hcharley opened this issue · 2 comments
hcharley commented
Usage
import { MemoryRouterProvider } from 'next-router-mock/MemoryRouterProvider';
...
<MemoryRouterProvider>
<></>
</MemoryRouterProvider>
...
Conjecture
I take it this is related to React 18's dropping of the "implicit" children
prop from FC:
scottrippey commented
Published as version 0.6.6
Please report if this fixes the issue. Thanks!
hcharley commented
Fixed! 🎊