Safe Refactoring
By the end of this guide, you will:
-
Extract your file list code into a separate module (a Fragment)
-
Understand what a Fragment is (a module with Model, Init, Update, View)
-
Use the Router DSL to route messages and events to your Fragment
-
Run your tests and see them still pass (refactor fearlessly)
-
Know when to extract code vs keep it inline
⚠️ This page is a stub. Help us write it! See the Documentation Plan and Style Guide.