You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I startet to read from the beginning, so first page was: Function Components
Where this statement is made "By convention, the function is named in PascalCase, like all components, to contrast its use to normal html elements inside the html! macro."
Then I went through the excellent starting tutorial, where now: Tutorial Components
Here, in the text again PascalCase: "Notice the parameters of our VideosList function component."
But the code is written according to Rust standards: videos_list
#[function_component(VideosList)]
fn videos_list(VideosListProps { videos }: &VideosListProps) -> Html {
This makes me wonder if the naming convention has been adapted recently.
Or maybe now it is customary to write the PascalCase name in brackets after to annotation to not mess with Rust Analyzer. I believe a clarification would be helpful.
The text was updated successfully, but these errors were encountered:
This is about:
Problem
I startet to read from the beginning, so first page was:
Function Components
Where this statement is made "By convention, the function is named in PascalCase, like all components, to contrast its use to normal html elements inside the html! macro."
Then I went through the excellent starting tutorial, where now:
Tutorial Components
Here, in the text again PascalCase: "Notice the parameters of our VideosList function component."
But the code is written according to Rust standards: videos_list
This makes me wonder if the naming convention has been adapted recently.
Or maybe now it is customary to write the PascalCase name in brackets after to annotation to not mess with Rust Analyzer. I believe a clarification would be helpful.
The text was updated successfully, but these errors were encountered: