UNPKG
@kvinc/mreact
Version:
latest (0.0.2)
0.0.2
0.0.1
martin's simple react
@kvinc/mreact
/
React
/
Component.js
14 lines
(12 loc)
•
264 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
stateQueue
from
'../SetState'
class
Component
{
constructor
(
props = {}
) {
this
.
state
= {}
this
.
props
= props }
setState
(
stateChange
) {
// renderComponent(this)
stateQueue
(stateChange,
this
) } }
export
default
Component