Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Latest commit

 

History

History
56 lines (42 loc) · 3.44 KB

frontend.md

File metadata and controls

56 lines (42 loc) · 3.44 KB

Frontend

The frontend is built in React, wired up with React Router and Redux, compiled using Webpack and Babel. Styles are written in SASS, leveraging USWDS.

Table of Contents

File Structure

Here are some of the major directories:

Debugging & Troubleshooting

  • Use of the React Developer Tools and Redux DevTools Extension are recommended for frontend work.
  • With the React extension, the Redux store can be inspected by selecting the <Provider> component and running $r.store.getState() in your browser's JavaScript console.
  • In the development environment, you may opt in to Logger for Redux by appending ?reduxLogger=true to the url on initial load.

Adding/updating NPM packages

Whenever the dependencies list in package.json is changed, make sure the yarn.lock gets updated as well:

docker-compose run --rm js yarn

then restart the server.

Resources