Skip to content

Commit c8e7b7c

Browse files
committed
Apply suggestions from code review & fix stylistics
1 parent 525948b commit c8e7b7c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

content/blog/2018-10-23-react-v-16-6.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ React 16 впервые представил [предохранители](/blo
8686

8787
Мы добавили ещё два API в список устаревших API `StrictMode`. Не беспокойтесь: если вы не используете `StrictMode`, эти предупреждения у вас не появятся.
8888

89-
* __ReactDOM.findDOMNode()__ -- этот API-метод часто неправильно понимают и в большинстве случаев он не нужен. К тому же, он может сильно тормозить в React 16. В [документации](/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage) мы описали, чем можно его заменить.
89+
* __ReactDOM.findDOMNode()__ -- этот API-метод часто неправильно понимают, и в большинстве случаев он не нужен. К тому же, он может сильно тормозить в React 16. В [документации](/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage) мы описали, чем можно его заменить.
9090
* __Legacy Context__ -- contextTypes и getChildContext слегка замедляют React и добавляют ему лишней громоздкости. Так что мы настоятельно рекомендуем вам перейти на [новый API контекста](/docs/context.html). Мы надеемся, что новый API [`contextType`](/docs/context.html#classcontexttype) упростит вам переход.
9191

9292
Если у вас возникнут трудности с обновлением, пожалуйста, дайте нам знать.
@@ -120,32 +120,32 @@ npm install --save react@^16.6.0 react-dom@^16.6.0
120120

121121
### React {#react}
122122

123-
* Добавить `React.memo()` как альтернативу `PureComponent` для функций. ([@acdlite](https://github.com/acdlite) в [#13748](https://github.com/facebook/react/pull/13748))
124-
* Добавить `React.lazy()` для компонентов с разделением кода. ([@acdlite](https://github.com/acdlite) в [#13885](https://github.com/facebook/react/pull/13885))
123+
* Добавлен `React.memo()` в качестве альтернативы `PureComponent` для функциональных компонентов. ([@acdlite](https://github.com/acdlite) в [#13748](https://github.com/facebook/react/pull/13748))
124+
* Добавлен `React.lazy()` для компонентов с разделением кода. ([@acdlite](https://github.com/acdlite) в [#13885](https://github.com/facebook/react/pull/13885))
125125
* `React.StrictMode` теперь предупреждает об устаревшем API контекста. ([@bvaughn](https://github.com/bvaughn) в [#13760](https://github.com/facebook/react/pull/13760))
126126
* `React.StrictMode` теперь предупреждает о `findDOMNode`. ([@sebmarkbage](https://github.com/sebmarkbage) в [#13841](https://github.com/facebook/react/pull/13841))
127-
* Переименовать `unstable_AsyncMode` в `unstable_ConcurrentMode`. ([@trueadm](https://github.com/trueadm) в [#13732](https://github.com/facebook/react/pull/13732))
128-
* Переименовать `unstable_Placeholder` в `Suspense` и `delayMs` -- в `maxDuration`. ([@gaearon](https://github.com/gaearon) в [#13799](https://github.com/facebook/react/pull/13799) и [@sebmarkbage](https://github.com/sebmarkbage) в [#13922](https://github.com/facebook/react/pull/13922))
127+
* `unstable_AsyncMode` переименован в `unstable_ConcurrentMode`. ([@trueadm](https://github.com/trueadm) в [#13732](https://github.com/facebook/react/pull/13732))
128+
* `unstable_Placeholder` переименован в `Suspense`, а `delayMs` -- в `maxDuration`. ([@gaearon](https://github.com/gaearon) в [#13799](https://github.com/facebook/react/pull/13799) и [@sebmarkbage](https://github.com/sebmarkbage) в [#13922](https://github.com/facebook/react/pull/13922))
129129

130130
### React DOM {#react-dom}
131131

132-
* Добавить более удобный способ подписки на контект из классов -- `contextType`. ([@bvaughn](https://github.com/bvaughn) в [#13728](https://github.com/facebook/react/pull/13728))
133-
* Добавить метод жизненного цикла для отлова ошибок в будущем асинхронном серверном рендерере `getDerivedStateFromError`. ([@bvaughn](https://github.com/bvaughn) in [#13746](https://github.com/facebook/react/pull/13746))
134-
* Выводить предупреждение, когда вместо `<Context.Consumer>` используется `<Context>`. ([@trueadm](https://github.com/trueadm) в [#13829](https://github.com/facebook/react/pull/13829))
135-
* Пофиксить серый оверлей в iOS Safari. ([@philipp-spiess](https://github.com/philipp-spiess) в [#13778](https://github.com/facebook/react/pull/13778))
136-
* Пофиксить баг, вызванный перезаписью `window.event` в режиме разработки. ([@sergei-startsev](https://github.com/sergei-startsev) в [#13697](https://github.com/facebook/react/pull/13697))
132+
* Добавлен более удобный способ подписки на контекст из классов -- `contextType`. ([@bvaughn](https://github.com/bvaughn) в [#13728](https://github.com/facebook/react/pull/13728))
133+
* Добавлен метод жизненного цикла для отлова ошибок в новом асинхронном серверном рендерере `getDerivedStateFromError`. ([@bvaughn](https://github.com/bvaughn) в [#13746](https://github.com/facebook/react/pull/13746))
134+
* Теперь выводится предупреждение, когда вместо `<Context.Consumer>` используется `<Context>`. ([@trueadm](https://github.com/trueadm) в [#13829](https://github.com/facebook/react/pull/13829))
135+
* Исправлен серый оверлей в iOS Safari. ([@philipp-spiess](https://github.com/philipp-spiess) в [#13778](https://github.com/facebook/react/pull/13778))
136+
* Исправлен баг, вызываемый перезаписью `window.event` в режиме разработки. ([@sergei-startsev](https://github.com/sergei-startsev) в [#13697](https://github.com/facebook/react/pull/13697))
137137

138138
### React DOM Server {#react-dom-server}
139139

140-
* Добавить поддержку `React.memo()`. ([@alexmckenley](https://github.com/alexmckenley) в [#13855](https://github.com/facebook/react/pull/13855))
141-
* Добавить поддержку `contextType`. ([@alexmckenley](https://github.com/alexmckenley) и [@sebmarkbage](https://github.com/sebmarkbage) в [#13889](https://github.com/facebook/react/pull/13889))
140+
* Добавлена поддержка `React.memo()`. ([@alexmckenley](https://github.com/alexmckenley) в [#13855](https://github.com/facebook/react/pull/13855))
141+
* Добавлена поддержка `contextType`. ([@alexmckenley](https://github.com/alexmckenley) и [@sebmarkbage](https://github.com/sebmarkbage) в [#13889](https://github.com/facebook/react/pull/13889))
142142

143143
### Планировщик (экспериментально) {#scheduler-experimental}
144144

145-
* Переименовать пакет в `scheduler`. ([@gaearon](https://github.com/gaearon) в [#13683](https://github.com/facebook/react/pull/13683))
146-
* Добавить поддержку продолжений, обёрнутых колбэков и уровней приоритета. ([@acdlite](https://github.com/acdlite) в [#13720](https://github.com/facebook/react/pull/13720) и [#13842](https://github.com/facebook/react/pull/13842))
147-
* Улучшить механизм запасного планировщика в среде без DOM. ([@acdlite](https://github.com/acdlite) в [#13740](https://github.com/facebook/react/pull/13740))
148-
* Запрограммировать `requestAnimationFrame` выполняться раньше. ([@acdlite](https://github.com/acdlite) в [#13785](https://github.com/facebook/react/pull/13785))
149-
* Добавить более тщательную проверку на наличие DOM. ([@trueadm](https://github.com/trueadm) в [#13731](https://github.com/facebook/react/pull/13731))
150-
* Пофиксить баги счётчика взамодействий. ([@bvaughn](https://github.com/bvaughn) в [#13590](https://github.com/facebook/react/pull/13590))
151-
* Добавить в пакет `envify`-трансформацию кода. ([@mridgway](https://github.com/mridgway) in [#13766](https://github.com/facebook/react/pull/13766))
145+
* Пакет переименован в `scheduler`. ([@gaearon](https://github.com/gaearon) в [#13683](https://github.com/facebook/react/pull/13683))
146+
* Добавлена поддержка продолжений, обёрнутых колбэков и уровней приоритета. ([@acdlite](https://github.com/acdlite) в [#13720](https://github.com/facebook/react/pull/13720) и [#13842](https://github.com/facebook/react/pull/13842))
147+
* Улучшен механизм запасного планировщика в среде без DOM. ([@acdlite](https://github.com/acdlite) в [#13740](https://github.com/facebook/react/pull/13740))
148+
* `requestAnimationFrame` теперь принудительно выполняется в начале фрейма. ([@acdlite](https://github.com/acdlite) в [#13785](https://github.com/facebook/react/pull/13785))
149+
* Добавлена более тщательная проверка на наличие DOM. ([@trueadm](https://github.com/trueadm) в [#13731](https://github.com/facebook/react/pull/13731))
150+
* Исправлены баги счётчика взамодействий. ([@bvaughn](https://github.com/bvaughn) в [#13590](https://github.com/facebook/react/pull/13590))
151+
* В пакет добавлена `envify`-трансформация кода. ([@mridgway](https://github.com/mridgway) in [#13766](https://github.com/facebook/react/pull/13766))

0 commit comments

Comments
 (0)