useContext() in every component or pass context state from parent to children via props

前端 未结 0 1810
南笙
南笙 2020-12-02 21:03

I am new to React Context and I was wondering which of this two workflows is better ?

Scenario: Having parent and children component - both of them use the same state

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