Open cweems opened 8 years ago
Taking a look at this now. Crazy that this is what had to be done, THANKS CHART.JS.
If we have to start passing down lots of data I'd probably just try to implement a store - but I'll take a look once we start working on this today to really dig into what's needed.
@keithk Just FYI, if you look at
index.js
you'll see that the react app is now split into 2 components (https://github.com/codeforamerica/nyc-january-project/blob/master/src/index.js#L10)This was the best way I could find to have some sections that could use Chart.js in some sections and react in others. If you and @amultiplied want to build something that passes data between the sections, you might make another component on top of index that passes props into the elements that are being bound there. Not a great solution but I think it'll work.