React with TypeScript: Optional Props with Default Values
From the blog post React with TypeScript: Optional Props with Default Values
Of particular interest is the pattern used in the FancyTitle
component.
Get Started
Clone this repository:
git clone https://github.com/princefishthrower/react-with-typescript-optional-props-with-default-values.git
Install Packages:
npm install
Start the project:
npm run start
Enjoy the optional default value prop
eyness!