I have a class which has many functions, i wish to outsource these functions and put each group of function inside a file of their own and then use them by importing and calling them.
Usually this is very simple, you simply put the function bodies inside another file and then export them, but in my case i use this.state
and this.setState
, is it still possible to outsource these function? if not, is there a better practice?
Thank you.
vendredi 30 août 2019
How can i outsource functions that use state and do setState
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire