Here's my Unit Converter project - Scrim
https://scrimba.com/scrim/co4574dd9914da56f3ecbc2cc
I'd like some help in thinking about ways to refactor my render and calculation functions so that it is more DRY.
**What I tried: **
For my first pass, I focused on getting things to work, hence my solution is geared at brute forcing the answer. I had to split up the render function three times so that it would return 3 different responses vs. returning the same response in 3 different divs.
How I plan to approach the refactor:
- Have one uber Calculation function. It should take an input value and a unit of conversion (ex: meterToFeet, literToGallon) and run all of the calculations.
Is there anything else I should look at?