DEV Community

Discussion on: How to use previously packaged ReactJS component in static website

Collapse
 
jvarghese profile image
JVarghese99

I managed to get my example working by adding the following line to the ReactJs project

(window as any).ExButton = ExButton

I am not sure if there is any better way.

Collapse
 
jonasbn profile image
Jonas Brømsø

Glad to hear you got it to work.

Just out of curiosity - and only respond if you have the time.

  • What led you to the solution?