-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
help wantedExtra attention is neededExtra attention is needed
Description
00:00:49 [cargo] error[E0277]: `Component<_>` is not implemented for `fn(IconProps<_>) -> Result<VNode, RenderError> {Icon::<_>}`
--> /home/titoffklim/project/src/components/accordion.rs:94:9
|
87 | / rsx! {
88 | | div {
89 | | class: "flex",
90 | | button {
... |
94 | | Icon {
| | ^^^^ Component
... |
99 | | }
100 | | }
| |___- required by a bound introduced by this call
|
= note: consider using `--verbose` to print the full type name to the console
= help: the trait `ComponentFunction<_, _>` is not implemented for fn item `fn(IconProps<_>) -> Result<VNode, RenderError> {Icon::<_>}`
= note: Components are functions in the form `fn() -> Element`, `fn(props: Properties) -> Element`, or `#[component] fn(partial_eq1: u32, partial_eq2: u32) -> Element`.
= note: You may have forgotten to add `#[component]` to your function to automatically implement the `ComponentFunction` trait.
note: required by a bound in `dioxus::prelude::fc_to_builder`
--> /home/titoffklim/.cargo/git/checkouts/dioxus-1e619ce595d3799d/e0575b3/packages/core/src/properties.rs:110:36
This error shows up on 0.6.0-alpha.4 version, simple adding #[component] to pub fn Icon<T> isn't working
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed