1×
Become a member
to unlock all features

Create an egghead account to access 5000+ tutorials and resources from expert developers.

Create account
Autoplay

    Build Forms with React to Edit mobx-state-tree Models

    reactReact
    ^16.0.0
    mobxMobX
    ^3.0.0

    We will expand our UI, and give the user the possibility to edit his wishlist. We will use the earlier defined actions. We also will use model clones only to modify data temporarily, and after approving the changes, apply them back to the original model.

    In this lesson you will learn:

    • How to call model actions from a component
    • Using clone to create a full, deep clone of any model instance
    • Using applySnapshot to update the state of a model instance given a snapshot.