3 ms·
How would you do something like this with stateless components? (Where the component is just a function that takes props)
by woah 10y ago
How would you do something like this with stateless components? (Where the component is just a function that takes props)
- cwmoo740 10y agointerface IMyComponentProps { x: number; } function MyComponent(props: IMyComponentProps): JSX.Element { return <p>{props.x}</p>; }