Is it possible to pass the setState to a function as parameter in ReactJS?

前端 未结 0 1566
春和景丽
春和景丽 2020-12-23 02:44

So I want to make a global function which will call setState from a component.

My Component

import {sampleGlobalFunction} from "./glo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题