0.1.25 • Published 4 years ago

react-global-components v0.1.25

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

react-global-components

npm npm GitHub stars GitHub forks GitHub issues GitHub issues

The library that enables react to implement global components.

Npm / Yarn

npm i react-global-components

yarn add react-global-components

## Getting started
### Requirement
- esNext
- React
### Edit File
```javascript
// src/index.js or src/app.js
import ReactGlobalComponents from 'react-global-components';
ReactGlobalComponents();

// OR

import ReactGlobalComponents from 'react-global-components';
ReactGlobalComponents('../../../plugins');
// plugins/Card.js
import { Card } from 'card-components';
export default Card;

Important!!
You can call it by file name. Reserved words must not be used.

// Every Where Can Call Tt without import
export default Index() {
    const func = Card();
    console.log(func);

    return (<Card />);
}
// .eslintrc
{
  "parser": "babel-eslint"
}

This library support component, function, variable.
Now enjoy coding.

Features

  • Can make Global Components.
  • Focus on bundle size and stability.

Update

  • MAJOR version when you make incompatible API changes,
  • MINOR version when you add functionality in a backwards-compatible manner, and
  • PATCH version when you make backwards-compatible bug fixes.

example:) v0.0.18 is
18th patched.

Updated New Version

  • Support edit basic root of the plugins folder. (MINOR)
  • fix: pollyfill and find file name. (PATCH)
  • Jest tests case more improve (PATCH)
  • Typescript's type check more improve (PATCH)

Update Scheduled

  • Compress global import size (PATCH)

Examples

This is Example boilerplate code.
You can get better way.

0.1.20

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.23

4 years ago

0.1.24

4 years ago

0.1.25

4 years ago

0.1.19

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.19

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago