reactn:React,但具有内置的全局状态管理

ReactN ReactN是React的扩展,其中包括全局状态管理。它将全局状态视为内置于React本身中-无需第三方库的样板文件。要获得支持,请在上与我们。 :growing_heart:这个项目?安装npm install reactn或yarn add reactn产品特点没有样板对于功能组件, import { useGlobal } from 'reactn';利用React Hooks的力量!对于类组件,只需将import React from 'react';更改import React from 'react'; import React from 'reactn'; ,您的React类组件将内置全局状态!如果您更喜欢类装饰器,则可以继续import React from 'react';用于您的组件,并另外import reactn from 'reactn';访问@reactn装饰器!直觉的功能组成功能组件中的全局状态的行为几乎与局部状态相同。您可以使用[ global, setGlobal ] = useGlob
folder
reactn:React,但具有内置的全局状态管理 预估大小:207个文件
file
.gitignore 102B
file
tsconfig.json 468B
file
index.js 1KB
file
tsconfig.json 494B
file
.env 28B
file
manifest.json 305B
file
index.html 662B
file
favicon.ico 4KB
file
package.json 1KB
file
example.js 821B
file
example1.js 465B
file
example2.js 354B
file
logo.jpg 4KB
file
yarn.lock 444KB
file
LICENSE 1KB
file
package.json 2KB
file
.babelrc 133B
file
jest.config.js 400B
file
yarn.lock 224KB
file
.eslintrc.js 956B
zip 文件大小:400.42KB