A collection of components that will reliably
React Rainbow
React Rainbow is a collection of components that will reliably help you build your application in a snap. Give it a hack and let us know what you think.
Installation
React Rainbow components is available as an npm package.
$ yarn add react-rainbow-components
or
$ npm install react-rainbow-components --save
Usage
Here is a quick example to get you started, it's all you need:
import React from 'react';
import ReactDOM from 'react-dom';
import Button from 'react-rainbow-components/components/Button';
function App() {
return (
<Button
label="Hello World!"
variant="brand"
onClick={() => alert('Hello World!')}
/>
);
}
ReactDOM.render(
<App />,
document.getElementById('container')
);