Created
October 21, 2022 17:44
-
-
Save DoctorDerek/b5bade4b2766b5f3a69127cb771689b6 to your computer and use it in GitHub Desktop.
What Is the Correct Type for the Children Prop in React TypeScript? https://medium.com/p/6974e82917b4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ReactNode } from "react" | |
type ILayout = { | |
pageInfo?: { name: string; description: string } | |
children: ReactNode | |
} | |
export default ILayout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment