When doing UI code (with something like React) it's next to impossible to do TDD - you can't know the structure until you actually implement it.
If I'm fixing a bug in some sort of non-ui code, I often find TDD to be very helpful. Create a test case that demonstrates that failure, then fix the implementation to make the test pass.
When doing UI code (with something like React) it's next to impossible to do TDD - you can't know the structure until you actually implement it.
If I'm fixing a bug in some sort of non-ui code, I often find TDD to be very helpful. Create a test case that demonstrates that failure, then fix the implementation to make the test pass.