May 2019
Intermediate to advanced
496 pages
10h 38m
English
After this, our handleSubmit function is a huge mess. I have counted 23 lines in my method; in the test-driven world, that is very long. Anything over five lines should be refactored (excluding our render function, which, for some reason, is generally accepted as long by default).
Refactoring handleSubmit into smaller methods is an exercise left for you; see the Exercises section. But here are some hints for how you can go about that systematically:
Read now
Unlock full access