react-dnd-size
v1.0.0
Published
react-dnd-size
Downloads
5
Maintainers
Readme
store
Install
npm install stores.js --save
Usage
import React, { Component } from 'react';
import Store from 'stores.js';
import './App.scss';
class App extends Component {
constructor(props) {
super(props);
this.state = {
};
}
componentDidMount() {
const store = new Store('test1', '1Y1m');
// const store1 = new Store('test2', '1h1m');
store.set({ name: 'store name' });
// store1.set({ name: 'store name' });
store.delete();
console.log('store===', store);
console.log('get===', store.get());
}
render() {
return (
<div className="form-wrap">
1111111<br />
2222222
</div>
);
}
}
export default App;