3
私はReactを学ぶ途中ですが、文脈について読んだ後、私はこれについて疑問を抱き続けています。子コンポーネントがコンテキストを受け取るために、なぜParentComponent.childContextTypes
とChildComponent.contextTypes
が必要ですか?ParentComponent.childContextTypesとChildComponent.contextTypesが必要なのはなぜですか?