Convert React Components
React Function Component
React Component without Props
<Footer />
: renamefooter.jsx
tofooter.tsx
footer.tsx
const Footer = () => <footer>Malcolm Kee ©</footer>;
render(<Footer />);
React Component with Props
<Spinner />
Using React.ReactNode
<Jumbotron />
<Navbar />
Using Union Types for props
<Alert />
Using JSX.IntrinsicElements
<Table />
<PanelBody />
,<PanelFooter />
,<PanelHeading />
Typing React.forwardRef
<Button />
React Class Component
<ErrorBoundary />
React Context
<FieldContext />