Closed kotarella1110 closed 2 years ago
Starting with React 18, children were removed from React.FC type. Therefore, using FormspreeProvider in React 18 will result in a type error.
children
React.FC
FormspreeProvider
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210
Thanks for the PR! We're working on a PR right now, but once that's done we'll get this one merged.
This should be resolved in @formspree/react version 2.4.0
Starting with React 18,
children
were removed fromReact.FC
type. Therefore, usingFormspreeProvider
in React 18 will result in a type error.https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56210