Writing reusable code
Nobody likes to build the same things over and over again. This chapter shows you how to build stuff once — and be able to use them everywhere.
Lessons in this chapter
- 1. Creating reusable code by writing libraries 0m:17s
- 2. Two Types of libraries 1m:51s
- 3. Including libraries with Script tags 1m:21s
- 4. Including libraries with ES6 Modules 4m:29s
- 5. Dynamic imports 1m:03s
- 6. 🛠️ Off Canvas: Building a Library 0m:36s
- 7. 🛠️ Modal: Library setup 3m:21s
- 8. 🛠️ Modal: Opening the Modal 10m:50s
- 9. 🛠️ Modal: Closing the modal 5m:39s
- 10. 🛠️ Modal: Inheritance and Polymorphism 5m:38s
- 11. 🛠️ Modal: Resolving differences between subclasses 6m:23s
- 12. 🛠️ Modal: Exposing properties and methods 6m:23s
- 13. 🛠️ Accordion: Building a library 0m:43s
- 14. 🛠️ Tabby: Building a library 8m:42s
- 15. 🛠️ Carousel: Building a library 9m:43s
- 16. 🛠️ Calculator: Library 12m:08s
- 17. 🛠️ Calculator: Fixing the Clear Key 7m:07s
- 18. 🛠️ Calculator: Handling other keys 11m:19s
- 19. 🛠️ Calculator: State 5m:57s
- 20. 🛠️ Popover: Library 9m:12s
- 21. 🛠️ Popover: Adding event listeners 10m:47s
- 22. 🛠️ Typeahead: Library 0m:54s
- 23. 🛠️ DatePicker: Library 0m:41s