Created
October 21, 2022 17:43
-
-
Save DoctorDerek/b74e75e76f7fc9d61c58462996709a86 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 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" | |
export default interface ILayout { | |
pageInfo?: { name: string; description: string } | |
children: ReactNode | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment