react-iaux

一个React UI Library, 使用简单

Usage no npm install needed!

<script type="module">
  import reactIaux from 'https://cdn.skypack.dev/react-iaux';
</script>

README

ღ react-iaux

一个React UI Library, 使用简单

npm deps license last-commit release prs download

Get Started ☆

install

npm i -S react-iaux

Usage

import React from 'react';
import { Button } from 'react-iaux';

export default function() {
  return (
    <div className="dc-btn-line">
      <Button onClick={() => console.log('Hello React')}>Get Started</Button>
    </div>
  );
}

Load on demand

  • direct import
import Button from 'react-iaux/es/button';
  • with babel-import-plugin
module.exports = {
  'plugins': [
    [
      'import',
      {
        'libraryName': 'react-iaux',
        'libraryDirectory': 'es',
        'style': true,
        'camel2DashComponentName': false,
        'customName': name => {
          return `react-iaux/es/${[name[0].toLowerCase(), name.substr(1)].join('')}`;
        },
      },
    ],
}

LICENSE

The MIT License (MIT)