UNPKG
@parity/light.js
Version:
latest (5.1.19)
5.1.19
5.1.18
5.1.17
5.1.16
5.1.15
5.1.14
5.1.13
5.1.12
5.1.11
5.1.10
5.1.9
5.1.8
5.1.7
5.1.6
5.1.5
5.1.4
5.1.3
5.1.2
5.1.1
5.1.0
5.0.1
5.0.0
4.1.1
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
3.0.31
3.0.30
3.0.29
3.0.28
3.0.27
3.0.26
3.0.25
3.0.24
3.0.23
3.0.22
3.0.21
3.0.19
3.0.18
3.0.13
3.0.12
3.0.11
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.5
3.0.4
3.0.3
3.0.1
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A high-level reactive JS library optimized for light clients
paritytech/js-libs
@parity/light.js
/
example-react
/
src
/
App.test.js
10 lines
(8 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
'react'
;
import
ReactDOM
from
'react-dom'
;
import
App
from
'./App'
;
it
(
'renders without crashing'
,
() =>
{
const
div =
document
.
createElement
(
'div'
);
ReactDOM
.
render
(
<
App
/>
, div);
ReactDOM
.
unmountComponentAtNode
(div); });