📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

lib-react-components

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
p

lib-react-components

React components

0.0.20
68

Supply Chain Security

100

Vulnerability

88

Quality

80

Maintenance

100

License

Repository has been archived by the owner.
Version published
Weekly downloads
261
94.78%
Maintainers
1
Weekly downloads
 
Created
Issues
10

React components

CircleCI

This version soon will be deprecated. Please use version from branch doc-loader

Installation

npm install lib-react-components --save

Configure webpack config

// webpack.config.js
// Add loader for .css files
module.exports = {
  ...
  module: {
    rules: [
      {
        test: /\.css$/,
        use: [
          {
            loader: 'style-loader',
          },
          {
            loader: 'css-loader',
            options: {
              importLoaders: 1,
              modules: true,
              localIdentName: '[local]_[hash:base64:5]',
            },
          },
        ],
      },
    ],
  },
};

Usage

import React from 'react';
import { render } from 'react-dom';
import { Button, ThemeProvider } from 'lib-react-components';
import theme from 'lib-react-components/lib/themes/if.css';

function App() {
  return (
    <ThemeProvider theme={theme}>
      <Button>
        Hello World
      </Button>
    </ThemeProvider>
  );
}

render(<App />, document.querySelector('#root'));

FAQs

Package last updated on 04 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts