Package Exports
- region-core
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (region-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
region-core
Progressive View Model Management Framework
English | 中文
| Package | Version | Docs | Description |
|---|---|---|---|
| region-core | The core of Region: set, load & useProps | ||
| region-shortcut | Wrapped core with global set, load & useProps | ||
| region-form | RegionForm extends Region: bindWith any ant-design form item |
Get Started
- install
npm i region-core- Create a Component with region
import { createRegion } from 'region-core';
const region = createRegion('initialValue');
const handleChange = e => region.set(e.target.value);
const Component = () => {
const value = region.useValue();
return <input value={value} onChange={handleChange} />;
};Docs
Example
git clone https://github.com/regionjs/region-core.git
cd example
npm i
npm startContribute
Feel free to raise issues and PR.