Dynamically call a function/variable using a string inside a function Javascript/React

后端 未结 0 1142
滥情空心
滥情空心 2021-01-21 06:03

I am trying to find a way to dynamically call a function given a string or reference a variable given a string. For instance:

import React, {useState} from \'reac         


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