Why am I not able to destructure “user” in my component that I have created in context? Am I missing Something?

前端 未结 0 1485
自闭症患者
自闭症患者 2020-12-15 06:01

I also want to know if I can destructure children the way I did or do I have to pass props then say "props.children"

import React, { createContext,          


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