Closed
Description
Describe the bug
When updating an application using primer to react and @types/react
to v18, multiple primer components fail type checks on children, since React.FC
no longer passes implicit children props (mirroring more closely the behavior of React.VFC
from v17.
Related issue reported in #2103
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
Primer types work correctly with react 18
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.