Skip to content

Commit 224b5ef

Browse files
Merge branch 'master' of https://github.com/reactjs/reactjs.org into sync-1fe2e0ae
2 parents 9499e6d + 1fe2e0a commit 224b5ef

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

content/community/conferences.md

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ September 26-28, 2019 in Goa, India
7676

7777
[Website](https://www.reactindia.io/) - [Twitter](https://twitter.com/react_india) - [Facebook](https://www.facebook.com/ReactJSIndia)
7878

79+
### React Alicante 2019 {#react-alicante-2019}
80+
September 26-28, 2019 in Alicante, Spain
81+
82+
[Website](http://reactalicante.es/) - [Twitter](https://twitter.com/reactalicante) - [Facebook](https://www.facebook.com/ReactAlicante)
83+
7984
## Past Conferences {#past-conferences}
8085

8186
### React.js Conf 2015 {#reactjs-conf-2015}

content/docs/hooks-faq.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ There are a few more heuristics, and they might change over time as we fine-tune
210210

211211
### How can I do data fetching with Hooks?
212212

213-
Check out [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) to learn more about data fetching with Hooks.
213+
Here is a [small demo](https://codesandbox.io/s/jvvkoo8pq3) to get you started. To learn more, check out [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) about data fetching with Hooks.
214214

215215
### Is there something like instance variables? {#is-there-something-like-instance-variables}
216216

@@ -467,7 +467,7 @@ Yes. See [conditionally firing an effect](/docs/hooks-reference.html#conditional
467467
Generally speaking, no.
468468

469469
```js{3,8}
470-
function Example() {
470+
function Example({ someProp }) {
471471
function doSomething() {
472472
console.log(someProp);
473473
}
@@ -481,7 +481,7 @@ function Example() {
481481
It's difficult to remember which props or state are used by functions outside of the effect. This is why **usually you'll want to declare functions needed by an effect *inside* of it.** Then it's easy to see what values from the component scope that effect depends on:
482482

483483
```js{4,8}
484-
function Example() {
484+
function Example({ someProp }) {
485485
useEffect(() => {
486486
function doSomething() {
487487
console.log(someProp);
@@ -571,7 +571,7 @@ We moved the function inside the effect so it doesn't need to be in its dependen
571571

572572
>Tip
573573
>
574-
>Check out [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) to learn more about data fetching with Hooks.
574+
>Check out [this small demo](https://codesandbox.io/s/jvvkoo8pq3) and [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) to learn more about data fetching with Hooks.
575575
576576
**If for some reason you _can't_ move a function inside an effect, there are a few more options:**
577577

content/docs/hooks-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Pass a "create" function and an array of dependencies. `useMemo` will only recom
320320

321321
Remember that the function passed to `useMemo` runs during rendering. Don't do anything there that you wouldn't normally do while rendering. For example, side effects belong in `useEffect`, not `useMemo`.
322322

323-
If no array is provided, a new value will be computed whenever a new function instance is passed as the first argument. (With an inline function, on every render.)
323+
If no array is provided, a new value will be computed on every render.
324324

325325
**You may rely on `useMemo` as a performance optimization, not as a semantic guarantee.** In the future, React may choose to "forget" some previously memoized values and recalculate them on next render, e.g. to free memory for offscreen components. Write your code so that it still works without `useMemo` — and then add it to optimize performance.
326326

content/docs/hooks-rules.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ npm install eslint-plugin-react-hooks
4141
"rules": {
4242
// ...
4343
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
44-
"react-hooks/exhaustive-deps": "warning" // Checks effect dependencies
44+
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
4545
}
4646
}
4747
```

src/theme.js

+5
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ const fonts = {
8989
lineHeight: '65px',
9090
fontWeight: 700,
9191

92+
[media.lessThan('small')]: {
93+
overflowWrap: 'break-word',
94+
wordBreak: 'break-word',
95+
},
96+
9297
[media.lessThan('medium')]: {
9398
fontSize: 40,
9499
lineHeight: '45px',

0 commit comments

Comments
 (0)