🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

lib-react-components

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-react-components

React components

0.0.23
Source
npm
Version published
Weekly downloads
12
-88.79%
Maintainers
1
Weekly downloads
 
Created
Source

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'));

Keywords

react

FAQs

Package last updated on 05 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