【文件属性】:
文件名称:mini-react-store:[mini-react-store]没有助焊剂,只有mini-store用于React
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-11 03:56:27
JavaScript
迷你React店
只有商店,迷你商店。
例子
/**
* store
*/
'use strict'
import Store from 'mini-react-store'
const store = new Store ( {
store : {
title : 'hello' ,
items : [ {
name : 'one'
} , {
name : 'two'
} ]
}
} )
class Item extends React . Component {
constructor ( props ) {
super ( props )
this . state = {
title : 'origin title' ,
count : 0 ,
item :
【文件预览】:
mini-react-store-master
----.gitignore(37B)
----test()
--------index.js(0B)
----Readme.md(1KB)
----package.json(685B)
----index.js(2KB)
----example()
--------webpack.js(412B)
--------index.js(3KB)
--------index.html(220B)