global-register-pattern

1.1.2 • Public • Published

Build Status

Purpose

I want to experiment register pattern into react project

Installation

yarn add global-register-pattern or npm install --save global-register-pattern

How to use it ?

import { GR } from 'global-register-pattern'
 
GR.register('routes.routeA', ComponentA);
GR.register('routes.routeB', ComponentB);

Methods

register

To use like that GR.register(key, value);

getValue

To use like that:

  • GR.getValue(key);
  • GR.getValue(a[0].b);
  • GR.getValue(a.b);
  • GR.getValue('.');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.2
    7
  • 1.1.1
    0
  • 1.1.0
    0
  • 1.0.1
    0

Package Sidebar

Install

npm i global-register-pattern

Weekly Downloads

7

Version

1.1.2

License

MIT

Unpacked Size

227 kB

Total Files

5

Last publish

Collaborators

  • flav