{"library":"rollup-react-npm","title":"Rollup React NPM","description":"A boilerplate for building React components with Rollup and publishing to npm. Version 1.1.23 requires React 16.2+, lodash 4.17+, and antd 3.1+. It provides a minimal setup with Babel transpilation and a single default export. Alternative to create-react-library and nwb.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-react-npm"],"cli":null},"imports":["import MyComponent from 'rollup-react-npm'","const MyComponent = require('rollup-react-npm').default"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import MyComponent from 'rollup-react-npm'\nimport 'antd/dist/antd.css' // required for antd styles\n\nfunction App() {\n  return (\n    <div>\n      <MyComponent />\n    </div>\n  )\n}\n\nexport default App","lang":"javascript","description":"Basic usage: import default component from the package and render it. Note that antd CSS must be imported separately.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}