- 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.
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- C語言程序設計實訓教程
- Ray分布式機器學習:利用Ray進行大模型的數據處理、訓練、推理和部署
- Easy Web Development with WaveMaker
- 3D少兒游戲編程(原書第2版)
- Unity Game Development Scripting
- Scala程序員面試算法寶典
- 青少年學Python(第1冊)
- Access 2010數據庫應用技術(第2版)
- Getting Started with Eclipse Juno
- 智能手機APP UI設計與應用任務教程
- Scala Data Analysis Cookbook
- C專家編程
- JSP程序設計與案例實戰(慕課版)
- 數據科學中的實用統計學(第2版)