Skip to content
UI/UX Task - Children's Books Website Demonstrating State Management
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This was Built Using Gatsby's default starter by @Nugoo 🚀


This Application uses Gatsbyjs. Gatsby is a React-based, GraphQL powered, static site generator. It weaves together the best parts of React, webpack, react-router, GraphQL, and other front-end tools in to one very enjoyable developer experience. It is similar to Nextjs but it has better performance for smaller sites (like this one). Unlike Nextjs, Gatsby also does not require a server.

Frameworks Used

  • Gatsby - Static Site Generator for React
  • Axios - Make HTTP requests or XMLHttpRequests. Supports promises. No parsing needed.
  • Redux - State Management System to Pass State Between Pages
  • React Icons - Icon Library (includes FontAwesome)
  • React Helmet - SEO Optimization on the fly
  • Formik & Yup - Form handling and validation
  • Material UI - Used for Mobile Drawer/Navigation

Styling Rules & Practices

  • This app uses CSS Grid for mobile responsiveness
  • Use of SCSS Modules and regular SCSS to minimize complexity
  • SCSS files to match name of corresponding .js file
  • SCSS/CSS to be ordered alphabetically

State Management

  • Redux is used at a bare minimum - Actions, Reducers and Configuration are not separated (as it would with a larger application), instead the reducer controls the functionality as well as being in charge of updating state. The individual components that are connected to the store are responsible for taking care of the their own actions as this is a very small application.

  • If this was to become larger, all of the functionality would move to an actions folder acting as the controller for application wide state management and functionality using Redux Thunk Middleware.


  1. The task of the react project made the whole application into a multi-page form, making the navigation quite obsolete (users shouldn't be able to visit other pages without selecting a book/category from current page). From a UI/UX perspective it doesn't work - jst following instructions of the task.

  2. Having a Multi-Page form is a bad design - prefer to have all this functionality as one component to prevent unnecessary routing! Could have also skipped using Redux in that case.

  3. A lot of unnecessary validation is also in the code in case the user navigates to a page without selecting something. Again - bad choice of separating the steps in to different pages.

  4. This application has Lazy Loading of Images straight out of the box, but since it is using an API to fetch images after component has mounted it does not make use of these benefits.

  5. It would be very simple to extend this application to support lazy loading of images without using any intersection observers.


Email: Website: nugoo @nugoo

You can’t perform that action at this time.