Jared Forsyth - Type Systems Will Make You a Better JavaScript Developer - React Conf 2017
Meta Developers · 2 位 HN 用户推荐 · 2017–2017
this.state = { foo: 1, // no type error }; }; } 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: [link]
— mambodog, 2017ay with a lot of different patterns coming in and falling out of love in our app, our experience falls almost exactly in line with this. It's simpler than I would have imagined from when we first started using React/Redux and handles the most complex interfaces our app has. My favorite part is how he models the different states the component can have. He describes the different states in a commen
— fky, 2017