We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? No Sign in to your account
related to this #125
we cannot just use JSX.Element, because all other types like string will cause error like below now
Type 'string' is not assignable to type 'Element'
according to react js doc, https://reactjs.org/docs/typechecking-with-proptypes.html
// Anything that can be rendered: numbers, strings, elements or an array // (or fragment) containing these types. optionalNode: PropTypes.node,
The text was updated successfully, but these errors were encountered:
I believe you can use React.ReactNode in node_modules/@types/react/index.d.ts
React.ReactNode
node_modules/@types/react/index.d.ts
Sorry, something went wrong.
Use React.ReactNode over JSX.Element for label property
label
93afb5d
Resolves #127.
No branches or pull requests
related to this #125
we cannot just use JSX.Element, because all other types like string will cause error like below now
according to react js doc, https://reactjs.org/docs/typechecking-with-proptypes.html
The text was updated successfully, but these errors were encountered: