I'm a using tailwind css in react. I'd like to know how to reuse a tailwind button style in a simple way, and where to keep the component the file?
export default function App() {
return (
<div className="App">
<button
// className='btn-indigo'
className="py-2 px-4 bg-green-500 text-white font-semibold rounded-lg shadow-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-400 focus:ring-opacity-75"
>
Button1
</button>
<button
// className='btn-indigo'
className="py-2 px-4 bg-green-500 text-white font-semibold rounded-lg shadow-md hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-400 focus:ring-opacity-75"
>
Button2
</button>
}