- Choose your favorite FE library (React, Vue, Svelte, ...)
- Use Vite to bootstrap the project
- Check that project is running (
npm run dev
)
- Use Tailwind css for styling purposes guide here
- Added support for tests with Vitest
Additional setup (might be done later): Git repo, Git Hooks (via Husky), CI/CD ( GitHub workflows)
Before writing any actual code, let's stop for a bit and think about the component API.
- What is the component name?
- What are the combinations of component usage?
- What props will the component require?
- Will you need any other helper components to encapsulate shared logic (eg. layout)?
Think about the points above and iterate over them to come up with the best approach 💪
After you have some design on paper (in mind), let's go into coding
- Create the component(s)
- make sure to also implement dark mode using Tailwind 😎
- Display all the combinations of the component (preferably as they are shown on the image)
- Write tests for the component(s)
Toast notifications were designed by: Corey Ginnivan