Bad Design Store Example

This example on bad design. We could simply force the DOM to update when every an action is called. However, this only update the current JSX element and all items that dependent on the count property. Instead we should find a way passing the appropriate parts of the store to relevant JSX elements so that they can update when state changes.

Remember to refresh the page if the snack does not load.

Complete and Continue