Just write.
Some ways to create a component in React
Some ways how to add an active state in Tailwind