package
A collection of react components to build web applications using the Watson APIs.
npm install watson-react-componentsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
A collection of React components to write web applications using the Watson APIs.
Documentation: https://watson-developer-cloud.github.io/react-components/
Install the library
npm install --save watson-react-componentsAdd components to your React file where needed:
Example:
import { Header, Footer, /*...*/} from 'watson-react-components';Make the assets public. For a Node.js/Express server, the following code should work:
app.use(express.static('./node_modules/watson-react-components/dist/'));For other environments, check out the code and run npm install; npm run build and then copy the contents of the dist/ directory into your static folder.
Add a reference to the stylesheet.
<link rel="stylesheet" type="text/css" hrefInstall Dependencies
npm installStart the development server
npm run devChanges will refresh the page thanks to browsersync.
Run the build command before pushing merge request:
npm run build.
├── README.md
├── dist
│ ├── components // ES5 react components
│ ├── css
│ ├── images
│ ├── js
│ └── scss
├── example
│ ├── build
│ ├── index.html
│ └── src
├── gh-pages
│ ├── build
│ ├── images
│ ├── index.html
│ └── src
├── gulpfile.js
├── package.json
├── src
│ ├── components // React components
│ └── stylesheets // Sass files
└── static // static files
└── images // imagesThis sample code is licensed under Apache 2.0.
See CONTRIBUTING.
Find more open source projects on the IBM Github Page
jzhang300
james.zhang75024@gmail.com
Adjust the href as necessary if a different location was chosen in step 3
Estimated unpacked size across 20 packages.
6.4 MB
Includes dependencies.
10 direct · 2 outdated
^16.6.3
19.3.1
^2.0.4
2.0.6
^1.15.0
1.30.0
^0.1.2
0.1.2
^2.2.6
2.5.1
^3.0.3
3.0.3
^0.6.2
0.6.2