Link to the storybook - https://trussworks.github.io/react-uswds/?path=/docs/welcome--docs
Link to the github - https://github.com/trussworks/react-uswds
Note, this is not the one we are using: figma link. https://www.figma.com/community/file/836611771720754351
Link to writeup on USWDS - https://gist.github.com/MichaelDimmitt/2ade952c70efcb16c95599396e86bfc4
- nvm use 18;
- yarn install;
- yarn run dev;
- add react router
- build pages.
- network request pattern, possibly just useEffect({makeRequest}, []) + useCallback - see link: https://stackoverflow.com/a/53572588/5283424
- folder structure: src/pages, src/utils, src/hooks,
- forms
- we should resist making new components, for speed. but if needed will eventually make it into a new storybook that we npm publish. which I can do on thursday pretty quickly.
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh