In React v 18+, the functional component interface has changed a bit and you would have to add the children prop by your own by declaring an interface like:
Popularity
9/10 Helpfulness
10/10
Language javascript
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!