dsc-react-components
v1.0.0
Published
React Components for DSC
Downloads
3
Readme
DSC React Components
See storybook of all components here: https://dollarshaveclub.github.io/dsc-react-components/
Commands
npm run eslint
- run eslintnpm run storybook
- start the story booknpm run build-storybook
- build the story book to/docs
, which updates the github pagenpm 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
Components
Footer
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} />