!!! This site is optimized for 1440x900 resolution on PC.
Users should be able to:
- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page
- Open a lightbox gallery by clicking on the large product image
- Switch the large product image by clicking on the small thumbnail images
- Add items to the cart
- View the cart and remove items from it
- Solution URL: https://www.frontendmentor.io/solutions/16th-challenge-article-preview-with-react-and-recoil-F7AW62PU4K
- Live Site URL: https://drunkenneoguri.github.io/ecommerceproductpagechallenge/
- HTML5
- CSS3
- React - JS library
- Styled Components - For styles
- Recoil - React framework
- make order and other menu item list page
- maintain cart data when user use to refresh
- make user profile page
- more interactive feature animation
- github - @develop_neoguri
- Frontend Mentor - @drunken_neoguri
- Twitter - @develop_neoguri
It's been a while since I participated in a challenge.
Previously, I used only Pure JS to write code, but now I have studied React, so I wrote the code in React to review it.
As I was writing, I realized the importance of global state management once again, and I tried Recoil,
which I wanted to learn, rather than Redux, which I used to use well.
The advantage of recoils, in my opinion, is that they are definitely 'accustomed'.
Once you understand the concept of useState in React, learning this library is very easy.
And you don't even have to write complex code like Redux.
All you need is atoms and hooks.
If Recoil is only used within the client, then Recoil is definitely a good library.
However, Recoil may not be a good option if the values received through APIs such as servers are applied to state management.
Since Recoil does not have the functions of middleware like Redux's thunk, you will need another library to act as a middleware separately.
It was nice to have a chance to try Recoil in a little bit at this opportunity.
Of course, the experience of writing code in a different way using React was fresh compared to when I was in Pure JS.
It was also difficult because it was difficult. ^^;;
Still, as I worked hard for 3 days, it was fun! 😊