UNPKG
jsx-node
Version:
latest (0.3.1)
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
Use JSX as Node templating engine
github.com/lohfu/jsx-node
lohfu/jsx-node
jsx-node
/
Component.js
13 lines
(10 loc)
•
181 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
module
.
exports
=
class
Component
{
constructor
(
props
) {
this
.
props
= props
this
.
state
= {} }
setState
(obj) {
Object
.
assign
(
this
.
state
, obj) } }