UNPKG
react-modeling
Version:
latest (1.0.1)
1.0.1
1.0.0
Collection of modeling utils
github.com/strobox/react-modeling
strobox/react-modeling
react-modeling
/
src
/
Nomnoml.jsx
13 lines
(11 loc)
•
292 B
JSX
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
factory
from
'./reactFactory'
;
import
nomnoml
from
'nomnoml'
;
export
default
factory
(
"canvas"
,
(
content,node,{onError}
) =>
{
if
(node)
try
{ nomnoml.
draw
(node, content); }
catch
(e) {
console
.
error
(e); onError &&
onError
(e,content); } })