Re:React v15.5.0
by mambodog on Friday April 07, 2017 @08:17PM
(#14064469)
I mean if you really want to be loose with the type of your component's state, you can just declare its type as Object, eg.
Providing a more explicit type for the component's state is a great way to catch bugs, however. It also forces you to more clearly think through which combinations of state properties are valid. Jared Forsyth gave a good talk about this at React Conf: https://www.youtube.com/watch?v=V1po0BT7kac
[ Parent
| on HN ]
There are no comments on this comment yet.