diff --git a/website/docs/concepts/function-components/attribute.mdx b/website/docs/concepts/function-components/attribute.mdx
index 96e87c313ee..72451283a36 100644
--- a/website/docs/concepts/function-components/attribute.mdx
+++ b/website/docs/concepts/function-components/attribute.mdx
@@ -11,7 +11,26 @@ Functions with the attribute have to return `Html` and may take a single paramet
The parameter type needs to be a reference to a `Properties` type (ex. `props: &MyProps`).
If the function doesn't have any parameters the resulting component doesn't accept any props.
-The attribute doesn't replace your original function with a component. You need to provide a name as an input to the attribute which will be the identifier of the component.
+Just mark the component with the attribute (also aliased as `#[fc]`). The component will be named after the function.
+
+```rust
+use yew::{fc, html, Html};
+
+#[fc]
+pub fn ChatContainer() -> Html {
+ html! {
+ // chat container impl
+ }
+}
+
+html! {
+
{ "Rendered at: " }
@@ -59,8 +78,8 @@ pub fn rendered_at(props: &RenderedAtProps) -> Html {
```rust
use yew::{function_component, html, use_state, Callback};
-#[function_component(App)]
-fn app() -> Html {
+#[function_component]
+fn App() -> Html {
let counter = use_state(|| 0);
let onclick = {
@@ -99,8 +118,8 @@ where
data: T,
}
-#[function_component(MyGenericComponent)]
-pub fn my_generic_component