React error Type '() => JSX.Element[]' is not assignable to type FunctionComponent
Publish Date:2025/03/15 Author:JIYIK Category:React
-
-
When we try to return an array of elements from a function component, a React.js error “Type '() => JSX.Element[]' is not assignable to type FunctionComponent” occurs. To fix the error, you need to wrap the array of elements in a React fragment....
Full