Creating Helper Functions in ReactJS

If you are making helper functions, you should instead make a file that exports functions like this:

Then import them like so:

import { MyHelperFunc_1 } from './helpers'

If you want to create a helper function that accepts a callback, you can do it like this:

Then use it like this: