Skip to content

Commit

Permalink
fix(links): updated the website of React (#7447) (#7450)
Browse files Browse the repository at this point in the history
Изменил в документации ссылки на новый сайт [react.dev](https://react.dev/). Также в хуках изменил одну ссылку на описание в апи.

Co-authored-by: Pasha Suprunchuk <[email protected]>
  • Loading branch information
inomdzhon and suprunchuk authored Aug 26, 2024
1 parent 03dfedc commit 6d7f1ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vkui/src/hooks/useIsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useIsomorphicLayoutEffect } from '../lib/useIsomorphicLayoutEffect';
* ВНИМАНИЕ: Этот подход сделает ваши компоненты медленнее, потому что они
* должны рендериться дважды, поэтому используйте хук с осторожностью.
*
* @see {@link https://beta.reactjs.org/apis/react-dom/hydrate#handling-different-client-and-server-content React Docs}
* @see {@link https://react.dev/reference/react-dom/hydrate#handling-different-client-and-server-content React Docs}
*/
export function useIsClient(initial = false): boolean {
const [isClient, setIsClient] = React.useState(initial);
Expand Down
2 changes: 1 addition & 1 deletion styleguide/pages/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Шаг 1

Подготовьте [SPA React приложение](https://ru.reactjs.org/docs/create-a-new-react-app.html).
Подготовьте [SPA React приложение](https://react.dev/learn/start-a-new-react-project).

Вы можете использовать любые шаблоны и сборщики, в том числе и Create React App.
**Обратите внимание:** VKUI поддерживает Typescript.
Expand Down
2 changes: 1 addition & 1 deletion styleguide/pages/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ withPlatform(MyComponent);
```

Способ определения платформы вне компонента устарел, так как мы начинаем поддерживать
[SSR](https://reactjs.org/docs/react-dom-server.html).
[SSR](https://react.dev/reference/react-dom/server).

## calcInitialsAvatarColor

Expand Down

0 comments on commit 6d7f1ac

Please sign in to comment.