
Newsletter Sign Up with React Typescript and Tailwindcss
Design comparison
Solution retrospective
Able to use react typescript and tailwindcss for this challenge.
What challenges did you encounter, and how did you overcome them?For this challenge i decided to use react with typescript and tailwindcss solely because i want to start learning those stacks.
Challenges:
- Setting up project:
- I learnt you can use tools like vite to generate a project starter.
- Learnt about tsconfig and quite a bit about its properties.
- Learn a bit about vite config and how you can create aliases.
- Learn a few things about tailwindcss setup with postcss and few extensions for vscode to make your development with tailwind more pleasant.
- Since we are dealing with form, i come across react-hook-form and zod for handling form and validation.
- Learnt about project structures.
- Learn about typescript type, interface and type narrowing.
- Learn a bit about how to use react router for routing your pages.
- Learn about seperating your code into smaller piece of code by moving a few components (button and input) to be its own module.
- Learn a lot about react hooks.
- Learn about providers on react.
- I struggle about z-index when creating shadow for a button. I learnt about an element will create stacking context if it has position other than static and z-index other than auto or 0. I set the button position to relative and z-index to 1 and before pseudo-element position to absolute and z-index of -1. But it only move the before pseudo-element below button text and stil on top of button background color.
Community feedback
- P@uheron96Posted 15 days ago
Everything looks and works as expected. I see you wrote it in React, great job! If this is the first time you used React, keep it up. If you are already familiar with React, then I would challenge you to try to recreate this website using vanilla JavaScript. As a person who works with React Native for my work, I found using Vanilla JS pretty challenging.
Marked as helpful1@phantomgizmoPosted 15 days ago@uheron96 Yes it's my first time using react, however i do cheated a bit by looking at other project with similiar stack. Yea i can see how it would be challenging managing the form and its state with vanilla javascript. I will keep the challenge for later. Thank you for the feedback!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord