- 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.
- Microsoft Application Virtualization Cookbook
- WSO2 Developer’s Guide
- Learn React with TypeScript 3
- bbPress Complete
- Express Web Application Development
- 第一行代碼 C語(yǔ)言(視頻講解版)
- Learning iOS Security
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- Learning D
- 零基礎(chǔ)學(xué)SQL(升級(jí)版)
- Using Yocto Project with BeagleBone Black
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- HTML5+CSS3+jQuery Mobile+Bootstrap開發(fā)APP從入門到精通(視頻教學(xué)版)
- Python機(jī)器學(xué)習(xí)
- VC++ 2008專題應(yīng)用程序開發(fā)實(shí)例精講