lol, I learned from the screenshot I can use React.FC to type my functional component. I always just typed props and used JSX.Element as the return value. Now I feel pretty dumb haha
React.FC
props
JSX.Element
lol, I learned from the screenshot I can use
React.FC
to type my functional component. I always just typedprops
and usedJSX.Element
as the return value. Now I feel pretty dumb haha