Hacker News new | ask | show | jobs
by watwut 1045 days ago
Extracting function to separate fine in react would be equally easy . You just extract and import it.

It is just that above example is so short and readable, that you don't have to bother.