cryptoeconomics-study / visualizations

đź•ąInteractive Network Visualizations for Cryptoeconomics.study
MIT License
7 stars 4 forks source link

Move bindings from render to constructor #39

Closed K-Ho closed 5 years ago

K-Ho commented 5 years ago

React binds the class method every time the render() method runs, meaning every time the component updates, which will hurt our application’s performance. Binding the class method in the constructor needs to only be done once, when the component is instantiated.