mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
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:
parent
92ebc68006
commit
5c5642782f
@ -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
|
||||
|
||||
@ -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};
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user