Import to react?
rkdmen opened this issue · 4 comments
rkdmen commented
Hi,
Im trying to import venn.js using npm into react. Keep saying venn is undefined..is there cdn available?
rkdmen commented
figured out another way.
luc-tielen commented
Which was this other way @rkdmen? Might be useful for other people to know.
Priyasingh589 commented
@luc-tielen - import * as venn from 'venn.js' works
afraser commented
Alternately you can import the named modules: import { VennDiagram } from 'venn.js'