Skip to content

Commit

Permalink
馃摑 docs(global): updated react docs old url to new url. (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
creador-dev committed Jul 5, 2023
1 parent 922e542 commit 8a6ec9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/exercise/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ I wouldn't recommend this all the time, but sometimes it can be a help!
馃摐 If you need to review the context API, here are the docs:
- [React Docs - Context](https://reactjs.org/docs/context.html)
- [React Docs - useContext](https://reactjs.org/docs/hooks-reference.html#usecontext)
- [React Docs - Context](https://react.dev/learn/passing-data-deeply-with-context)
- [React Docs - useContext](https://react.dev/reference/react/useContext)
馃 Tip: You may notice that the context provider/consumers in React DevTools
just display as `Context.Provider` and `Context.Consumer`. That doesn't do a
Expand Down
4 changes: 2 additions & 2 deletions src/exercise/02.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function Toggle() {
// props.children to a clone of that child with the props they need using
// React.cloneElement.
// 馃挵 React.Children.map(props.children, child => {/* return child clone here */})
// 馃摐 https://reactjs.org/docs/react-api.html#reactchildren
// 馃摐 https://reactjs.org/docs/react-api.html#cloneelement
// 馃摐 https://react.dev/reference/react/Children
// 馃摐 https://react.dev/reference/react/cloneElement
return <Switch on={on} onClick={toggle} />
}

Expand Down
4 changes: 2 additions & 2 deletions src/exercise/03.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as React from 'react'
import {Switch} from '../switch'

// 馃惃 create your ToggleContext context here
// 馃摐 https://reactjs.org/docs/context.html#reactcreatecontext
// 馃摐 https://react.dev/reference/react/createContext

function Toggle({children}) {
const [on, setOn] = React.useState(false)
Expand All @@ -26,7 +26,7 @@ function Toggle({children}) {
// 馃 You can create a helper method to retrieve the context here. Thanks to that,
// your context won't be exposed to the user
// 馃挵 `const context = React.useContext(ToggleContext)`
// 馃摐 https://reactjs.org/docs/hooks-reference.html#usecontext
// 馃摐 https://react.dev/reference/react/useContext
function ToggleOn({on, children}) {
return on ? children : null
}
Expand Down
2 changes: 1 addition & 1 deletion src/exercise/06.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Props."

This concept is basically the same as controlled form elements in React that
you've probably used many times: 馃摐
https://reactjs.org/docs/forms.html#controlled-components
https://react.dev/reference/react-dom/components

```javascript
function MyCapitalizedInput() {
Expand Down

0 comments on commit 8a6ec9d

Please sign in to comment.