amcharts / amcharts3-react

Official amCharts V3 React component
Apache License 2.0
118 stars 50 forks source link

React is not defined. #3

Closed julianljk closed 8 years ago

julianljk commented 8 years ago

I'm importing React via npm so when AmCharts.React tries to do React.createClass, it can't find React since its not in the scope of window. Does that mean that unless I import React and ReactDOM via a script tag in window, I can't use this?

msimonc commented 8 years ago

Good question, I have the same issue, thanks

Pauan commented 8 years ago

I just now added in support for Webpack.

You can see more details here.

You can also see here for an example app that uses Webpack and amcharts3-react.

Since this has now been solved, I'm going to close this issue. Please open a new issue if you are still having problems.