Workiva / react-dart

Dart Bindings for React JS
BSD 2-Clause "Simplified" License
413 stars 67 forks source link

Idea: use a state setter instead of initializeState #201

Closed kealjones-wk closed 5 years ago

kealjones-wk commented 5 years ago

Motivation

In ReactJS inside the constructor consumers set the initial state like this: this.state = {whatever: true}. We added the init method to emulate the constructor concept and due to typing issues we created initializeState but seriously, no.

Changes