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

后端 未结 0 387
轮回少年
轮回少年 2020-12-23 02:47

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

My Component

import {sampleGlobalFunction} from "./glo         


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