Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Dash custom component - this.state vs. propTypes performance


in some react components I found, the component defines a state (e.g. this.state = {some text}) in the constructor, which is changed by an onChange method in the render part of the component. As I understand, this.state keeps all the information within the custom component.

I contrast to that, the boilerplate example reads and changes the propTypeswhich appear to be a state of the component, that is accesible from outside, e.g. from a Python script.

I wonder, wether the last method diminishes the performance of the react component.