In the previous post, we saw on how to create a React component with state and event handlers using TypeScript. We can also create simple function components using TypeScript which does not require a state. Usually, these types of components are used for UI components. Class components with the state are used for container components and Function components are used for UI only components which do not interact with the state containers.
In this post, we will see how to create a simple Hello World function component in React using TypeScript.
In this post, we will see how to create a simple Hello World function component in React using TypeScript.