Skip to content
#

reference

Here are 644 public repositories matching this topic...

react
pomle
pomle commented Oct 20, 2020

In https://github.com/typescript-cheatsheets/react#useful-react-prop-type-examples it says

export declare interface AppProps {
  children: React.ReactNode; // best, accepts everything
}

ReactNode produces a false positive type check for {}.

React version: 16.14

Steps To Reproduce

  1. Create a new CRA project with TypeScript using for example `yarn create react-app r

Improve this page

Add a description, image, and links to the reference topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the reference topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.