How to create a React.js(TypeScript) Reusable Custom Button Component with TailwindCSS.
So before we start, I would like to show you what the code for the reusable custom button is going to look like.
import React from 'react';
type ButtonType = 'button' | 'submit' | 'reset' | undefined;
interface Props {
children: React.ReactNode;
...
rockyessel.hashnode.dev5 min read