Go ProSign in
Hide playlist

    Organize your Cycle.js Application into the Model-View-Intent Pattern

    André StaltzAndré Staltz

    We built the BMI calculator all inside one function: main(). As apps scale, we don't want main() to grow. We need an organized pattern where each function focuses on doing one thing. This lesson shows how we can easily refactor the main() function into three parts: Intent, Model, and View.

    You must be a Member to view code