React return string from function in a prop

后端 未结 0 1986
忘掉有多难
忘掉有多难 2021-01-29 08:33

In react I need to set a prop based on the return value from a function. I want to try to avoid using state for this and I am getting a variable from localstorage so that the us

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