1.0.0 • Published 4 years ago
@feizheng/react-full-image v1.0.0
react-full-image
Full page background image for react.
installation
npm install -S @feizheng/react-full-image
properties
property | type | description |
---|---|---|
className | - | - |
value | - | - |
onChange | - | - |
usage
import css
@import "~@feizheng/react-full-image/dist/style.scss"; // customize your styles: $react-full-image-options: ()
import js
import React from 'react'; import ReactDOM from 'react-dom'; import ReactFullImage from '@feizheng/react-full-image'; // your app: class App extends React.Component{ render(){ return ( <ReactFullImage /> ) } } // render to dom: ReactDOM.render(<App/>, document.getElementById('app'));
documentation
resources
- https://www.robinwieruch.de/minimal-react-webpack-babel-setup/
- https://www.valentinog.com/blog/react-webpack-babel/
- https://jestjs.io/docs/en/tutorial-react#snapshot-testing-with-mocks-enzyme-and-react-16
- https://testing-library.com/docs/react-testing-library/api
todos
- Add: semver number for every build files.
- Add: need output css files.
- Add: PWA support for docs.
- Add: source.map file for dist(
you can upload for production debug
). - BUG: npm run dev will clean dist.
1.0.0
4 years ago