Skip to main content

camel_case

Function camel_case 

Source
pub fn camel_case(name: &str) -> String
Expand description

Turns postEditor into postEditor, which is how a browser-written prop name reaches a field.

The macro-generated mount matches a kebab-case prop such as post-id to the field post_id and to the camel-case name, as upstream’s separateParamsAndAttributes does.