Hosted at: https://unruffled-euclid-838844.netlify.com/
To run the app locally, use these commands from the root directory:
yarn install
yarn start
To build for production, run:
yarn build
The root React component is App.js
Global base styles are in App.css
All other UI elements are in the src
folder:
components
are the React componentsLayout.js
sets up a shared styling theme and renders all UI as children components- Most style definitions are included in each component's
.js
file
propTypes
contains the prop definitions for the mock datautils
contains functions that are useful in multiple components
Back in the root directory:
mock-data.js
contains the product items.eslintrc
has JavaScript linting config for quality assurance and consistency in JS conventions
- Create React App
- React Hooks
- React Spring
- Styled Components
I took this as an opportunity to get more familiar with using React Hooks
. There are no class components and all state is managed via hooks. 🤯
Also explored the Styled Components
css-in-js library. First time using it, but I thought it was great! Loved being able to nest rules as I'd done with Sass
or post-css css-next
projects, and generally write familiar CSS.
React Spring
is also pretty new to me, so I tried it out for section transitions.