Tag:typescript
All the articles with the tag "typescript".
Conditional Rendering in React with a Switch Component
Posted on:September 9, 2023 at 01:12 PMI would like to create a straightforward switch component in React to control which elements are rendered. During the process, I will touch upon generating a React project boilerplate with Vite, delve into TypeScript typing (especially for the 'children' property), and explore the usage of dot notation for React components.