Questions marquées «typescript2.0»

138
TypeScript et React - type enfants?

J'ai un composant fonctionnel très simple comme suit: import * as React from 'react'; export interface AuxProps { children: React.ReactNode } const aux = (props: AuxProps) => props.children; export default aux; Et un autre composant: import * as React from "react"; export interface LayoutProps {...