Practicing compound component patterns by building a react reusable accordion component. The accordion is a headless component you can add your own CSS style or tailwind CSS.
Client
- React.js
- TypeScript
- TailwindCSS
To get a local copy up and running, follow these steps.
Clone this repository to your desired folder:
Example commands:
cd my-folder
git clone git@github.com:adel-gu/react-practice-components.git
Install this project with:
Example command:
cd my-project
yarn install
OR
cd my-project
npm install
To run the project, execute the following command:
Example command:
yarn start
- Accordion triggers: Implement an Accordion Trigger that wraps up the close and open buttons
This project shows how to build a reusable, headless component using react, typescript, and tailwindCSS. So if you like this project please give it a star.