lib-react-components
This package contains UI components as CSS and React code.
Installation
To install and save in your package.json
dependencies, run:
npm install --save lib-react-components
Quick start
Here's a quick example to get you started, it's literally all you need:
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'lib-react-components';
const App = () => (
<Button>
I am Button
</Button>
);
ReactDOM.render(
<App />,
document.querySelector('#root'),
);
And add styles file to your element.
<link rel="stylesheet" href="https://unpkg.com/lib-react-components@latest/themes/default.css">
Responsive meta tag
To ensure proper rendering and touch zooming for all devices, add the responsive viewport meta tag to your element.
<meta
name="viewport"
content="minimum-scale=1, initial-scale=1, width=device-width"
/>