- Mastering React Test:Driven Development
- Daniel Irvine
- 168字
- 2021-06-24 14:45:01
Creating a new React project from scratch
There's a standard template for creating React apps: the create-react-app application template. This includes some standard dependencies and boilerplate code that all React applications need. However, it also contains some extra items such as favicon.ico, a sample logo, and CSS files. While these are undoubtedly useful, having them here at the very start of a project is at odds with one of the test-driven developer's core principles: You Ain't Gonna Need It (YAGNI).
This principle says that you should hold off adding anything to your project until you're really sure that it's necessary. Perhaps that's when your team adds a user story for it into the iteration, or maybe it's when a customer asks for it. Until then, YAGNI.
It's a theme that runs throughout this book and we'll start right now by choosing to avoid create-react-app. You can always start every JavaScript project from scratch, and there's a certain joy to be found in going over the basics each time.
- Advanced Machine Learning with Python
- Raspberry Pi for Python Programmers Cookbook(Second Edition)
- Java范例大全
- Spring技術內幕:深入解析Spring架構與設計
- Learning ASP.NET Core 2.0
- Access 2010數據庫基礎與應用項目式教程(第3版)
- JavaScript+Vue+React全程實例
- Access 2016數據庫管
- Microsoft Azure Storage Essentials
- UML2面向對象分析與設計(第2版)
- Angular應用程序開發指南
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- RESTful Web Clients:基于超媒體的可復用客戶端
- Web開發的平民英雄:PHP+MySQL
- Java語言程序設計實用教程(第2版)