Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
woah
9y ago
0 comments
Share
How would you do something like this with stateless components? (Where the component is just a function that takes props)
undefined | Better HN
0 comments
default
newest
oldest
cwmoo740
9y ago
interface IMyComponentProps { x: number; }
function MyComponent(props: IMyComponentProps): JSX.Element { return <p>{props.x}</p>; }
j
/
k
navigate · click thread line to collapse