See storybook of all components here: https://dollarshaveclub.github.io/dsc-react-components/
-
npm run eslint
- run eslint -
npm run storybook
- start the story book -
npm run build-storybook
- build the story book to/docs
, which updates the github page -
npm run test-isomorphic
- run isomorphic tests, which are run in just a node environment. These are tests in__tests__/*.js
. -
npm run test-jsdom
- run tests in a jsdom environment. These are tests in__tests__/jsdom/*.js
. -
npm run test
- runs all tests
Reusable Footer
component.
Requires the following props:
- links
- countries
Usage:
<Footer links={links} countries={countries} />
// or load props from file
import faceAssetsFixturesUS from '../fixtures/face-assets/us.json'
<Footer {...faceAssetsFixturesUS} />