Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3115b85

Browse files
update context exercise
1 parent 0722246 commit 3115b85

File tree

1 file changed

+8
-2
lines changed
  • src/components/patterns/Context/exercise

1 file changed

+8
-2
lines changed

‎src/components/patterns/Context/exercise/index.jsx‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,14 @@ const Root = () => {
8888
</blockquote>
8989
<p>🤔 React docs say "use two different context types". Let's do it!</p>
9090
<p>
91-
Task: create two different context types for our StoreContext. One
92-
context for the dispatch, and another context for the state.
91+
<input type="checkbox" /> 2.1. Create two different context types for
92+
our StoreContext. One context for the dispatch, and another context for
93+
the state.
94+
</p>
95+
<p>
96+
<input type="checkbox" /> 2.2. Great! We've implemented task 2.1. but,
97+
wait 🤔... does it make any difference in our use case? Why? Discuss
98+
with your peers.
9399
</p>
94100
</div>
95101
);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /