Async function is not working when pass on as props

痞子三分冷 提交于 2020-07-10 08:44:04

问题


I have Listval function in parent component "Navbar", that i like to pass on as props to child component "Menu" as Listvalll. But it does not work.

I intend to bring it as props for on click in Modal of the Menu component. The function works ok when it is run within Menu, but is not working when i pasted it in the parent component. Please see the sandbox:

https://codesandbox.io/s/relaxed-shape-omjsc

来源:https://stackoverflow.com/questions/62584816/async-function-is-not-working-when-pass-on-as-props

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!