---
title: "Comment by Marek Prihoda on \"Redux vs. MobX by example — Part II: The Simplicity of MobX, and Conclusion\" | Hashnode"
description: "Great tutorial, thanks! However, it is not very clear to me how come that the list of visible todos gets updated when user adds a new todo. Seems like a real ma"
url: "https://hashnode.com/posts/redux-vs-mobx-by-example-part-ii-the-simplicity-of-mobx-and-conclusion/57ee4e59ff74ff60ef080e88/comment/582a2623acb107c39dc430de"
---

[Discussion](https://hashnode.com/posts/redux-vs-mobx-by-example-part-ii-the-simplicity-of-mobx-and-conclusion/57ee4e59ff74ff60ef080e88)

Comment [Redux vs. MobX by example — Part II: The Simplicity of MobX, and Conclusion](https://hashnode.com/posts/redux-vs-mobx-by-example-part-ii-the-simplicity-of-mobx-and-conclusion/57ee4e59ff74ff60ef080e88)

[Marek Prihoda](https://hashnode.com/@marekp)

[Nov 14, 2016](https://hashnode.com/posts/redux-vs-mobx-by-example-part-ii-the-simplicity-of-mobx-and-conclusion/57ee4e59ff74ff60ef080e88/comment/582a2623acb107c39dc430de)

Great tutorial, thanks! However, it is not very clear to me how come that the list of visible todos gets updated when user adds a new todo. Seems like a real magic to me. How does the TodoApp learn about the updated todos?

[Sai Kishore Komanduri](https://hashnode.com/@saiki)

[Nov 15, 2016](https://hashnode.com/posts/redux-vs-mobx-by-example-part-ii-the-simplicity-of-mobx-and-conclusion/57ee4e59ff74ff60ef080e88/comment/582a2623acb107c39dc430de#reply-582a74dcacb107c39dc43157)

We have specified, the `todos` array as an `@observable`. Whenever we make any changes to an `@observable`; the components decorated with `@observer` will autorun/rerun the `render` method.

Similarly, with `@computed`, whenever an `@observable` changes; the functions decorated with `@computed` are run, which get the required properties from the`@observable` data, and they compute the derivations, as required... and that's how we get `visibleTodos`.

If you're interested to know more, check out the [MobX docs](https://mobxjs.github.io/mobx/refguide/computed-decorator.html). They're very well written.
