UNPKG
mach-react
Version:
latest (0.3.3)
0.3.3
0.3.2
0.3.1
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.0
Fast, and tiny react implementation.
github.com/rolandpoulter/mach-react
rolandpoulter/mach-react
mach-react
/
components
/
Assert.js
16 lines
(11 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
;
import
React
, {
Component
}
from
'../src/index'
;
export
default
class
Expect
extends
Component
{
componentDidMount
(
) {
this
.
run
(); }
render
(
React
) {
return
<
div
>
assert{this.props.children}
</
div
>
; }
run
(
) {} }