Skip to content

TypeScript code snippet – How to pass children in react ?

type Props = {
  title: string,
  children: JSX.Element,
const Page = ({ title, children }: Props) => (
See also  Java code snippet - How to check if array is full ?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.