Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/reactjs/reactjs.org into …
Browse files Browse the repository at this point in the history
…sync-1fe2e0ae
  • Loading branch information
reactjs-translation-bot committed Mar 15, 2019
2 parents e67efaf + 1fe2e0a commit 6de5e49
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions content/community/conferences.md
Expand Up @@ -76,6 +76,11 @@ September 26-28, 2019 in Goa, India

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

### React Alicante 2019 {#react-alicante-2019}
September 26-28, 2019 in Alicante, Spain

[Website](http://reactalicante.es/) - [Twitter](https://twitter.com/reactalicante) - [Facebook](https://www.facebook.com/ReactAlicante)

## Past Conferences {#past-conferences}

### React.js Conf 2015 {#reactjs-conf-2015}
Expand Down
8 changes: 4 additions & 4 deletions content/docs/hooks-faq.md
Expand Up @@ -210,7 +210,7 @@ There are a few more heuristics, and they might change over time as we fine-tune

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

Check out [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) to learn more about data fetching with Hooks.
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.

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

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

```js{3,8}
function Example() {
function Example({ someProp }) {
function doSomething() {
console.log(someProp);
}
Expand All @@ -481,7 +481,7 @@ function Example() {
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:

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

>Tip
>
>Check out [this article](https://www.robinwieruch.de/react-hooks-fetch-data/) to learn more about data fetching with Hooks.
>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.
**If for some reason you _can't_ move a function inside an effect, there are a few more options:**

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-reference.md
Expand Up @@ -320,7 +320,7 @@ Pass a "create" function and an array of dependencies. `useMemo` will only recom

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`.

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.)
If no array is provided, a new value will be computed on every render.

**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.

Expand Down
2 changes: 1 addition & 1 deletion content/docs/hooks-rules.md
Expand Up @@ -41,7 +41,7 @@ npm install eslint-plugin-react-hooks
"rules": {
// ...
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warning" // Checks effect dependencies
"react-hooks/exhaustive-deps": "warn" // Checks effect dependencies
}
}
```
Expand Down
5 changes: 5 additions & 0 deletions src/theme.js
Expand Up @@ -89,6 +89,11 @@ const fonts = {
lineHeight: '65px',
fontWeight: 700,

[media.lessThan('small')]: {
overflowWrap: 'break-word',
wordBreak: 'break-word',
},

[media.lessThan('medium')]: {
fontSize: 40,
lineHeight: '45px',
Expand Down

0 comments on commit 6de5e49

Please sign in to comment.