docs: fix functional and struct components links (#2258)

* docs: fix functional and struct components links

* docs: fix link to func comp in rs

Co-authored-by: Leon Minasyan <leon-minasyan@yandex-team.ru>
This commit is contained in:
Leon 2021-12-11 21:14:11 +03:00 committed by GitHub
parent 92ebc68006
commit 5c5642782f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -6,7 +6,7 @@ This is an implementation of [TodoMVC](http://todomvc.com/) for Yew using functi
## Concepts
- Uses [`function_components`](https://yew.rs/docs/next/concepts/function-components)
- Uses [`function_components`](https://yew.rs/docs/next/concepts/function-components/introduction)
- Uses [`gloo_storage`](https://gloo-rs.web.app/docs/storage) to persist the state
## Improvements

View File

@ -11,7 +11,7 @@
//! }
//! ```
//!
//! More details about function components and Hooks can be found on [Yew Docs](https://yew.rs/next/concepts/function-components)
//! More details about function components and Hooks can be found on [Yew Docs](https://yew.rs/docs/next/concepts/function-components/introduction)
use crate::html::AnyScope;
use crate::{Component, Html, Properties};

View File

@ -64,13 +64,13 @@ replace with `={$1}`
## Function components
[Function components](./../../concepts/function-components) are a brand new way to write components that require less boilerplate than their structural counter part.
[Function components](./../../concepts/function-components/introduction) are a brand new way to write components that require less boilerplate than their structural counter part.
While this change does not force you to change your codebase, this migration time is a good opportunity to start using them in your codebase.
## Struct components lifecycle methods and ctx
[Struct components](./../../concepts/components) also received changes to their API.
[Struct components](./../../concepts/components/introduction) also received changes to their API.
### ShouldRender removed in favor of bool

View File

@ -454,7 +454,7 @@ lifecycle of a function component and perform actions. You can learn more about
[here](concepts/function-components/pre-defined-hooks#use_state)
:::note
Struct components act differently. See [the documentation](concepts/components) to learn about those.
Struct components act differently. See [the documentation](concepts/components/introduction) to learn about those.
:::
## Fetching data (using external REST API)

View File

@ -64,13 +64,13 @@ replace with `={$1}`
## Function components
[Function components](./../../concepts/function-components) are a brand new way to write components that require less boilerplate than their structural counter part.
[Function components](./../../concepts/function-components/introduction) are a brand new way to write components that require less boilerplate than their structural counter part.
While this change does not force you to change your codebase, this migration time is a good opportunity to start using them in your codebase.
## Struct components lifecycle methods and ctx
[Struct components](./../../concepts/components) also received changes to their API.
[Struct components](./../../concepts/components/introduction) also received changes to their API.
### ShouldRender removed in favor of bool

View File

@ -454,7 +454,7 @@ lifecycle of a function component and perform actions. You can learn more about
[here](concepts/function-components/pre-defined-hooks#use_state)
:::note
Struct components act differently. See [the documentation](concepts/components) to learn about those.
Struct components act differently. See [the documentation](concepts/components/introduction) to learn about those.
:::
## Fetching data (using external REST API)