8 ms·
My favorite things about this post: 1. The comparison of the lengths of the function using the two styles (class/function) 2. The comparison of the length of
by omarhaneef 7y ago
My favorite things about this post:
1. The comparison of the lengths of the function using the two styles (class/function)
2. The comparison of the length of the changes required in the two styles
3. The clarity achieved by maintaining the two columns consistently distinct.
If you are interested in how to demonstrate the efficiency of a new coding technique -- even if you're not interested in React Hooks -- this is worth a read.