Dmitry Efimenko
Nov 4 · 1 min read

Netanel Basal I noticed that “Example One” is failing to compile. The fix is super simple (removing the const from the Enum).

Also, how would one go about testing the Smart component (in the Example One it’s the TodosPageComponent)? In Angular, you’d mock the dependencies, but here the mechanism of importing these deps does not allow for their mocking. This kind of goes along with what Athrun Sun asked in #1. Perhaps, if there was a way to “connect” the store to the react component, it’d allow for passing the store members as props to that component. It’s a shame that this would need to be done just for the sake of enabling testing of smart components. Perhaps you can see a different way?

    Dmitry Efimenko

    Written by

    I’m a software engineer and an open-source contributor who’s recently been most passionate about anything related to front-end.