DEV Community

Discussion on: I prototype React apps rediculously quickly. Here are my 5 key tricks.

Collapse
 
waylonwalker profile image
Waylon Walker • Edited

5 is good. I do this often. I still do not sacrifice quality or back myself into a corner that requires a lot of work to back out of. As you describe it all you need to do when you are ready to clean up is move components to their own directory, not rewrite them.

These are small calculated shortcuts that you can easily back out.

I have seen 5 taken the wrong way and bad code was written to get the job done quickly, and honestly sometimes it so bad that its harder to deconstruct what they were trying to achieve and refactor than it would be to rewrite whole components. The right abstraction may not have been discovered and patterns get pasted in 10's of times.

Collapse
 
stereoplegic profile image
Mike Bybee

5 is good so long as you set a limit. If you're hitting, say, 100 lines consistently (with just components, not state or handlers), it's probably time to start breaking up a little sooner.