Skip to main content

is_react_like_name

Function is_react_like_name 

Source
pub fn is_react_like_name(name: &str) -> bool
Expand description

Returns true if the name follows React naming conventions (component or hook). Components start with an uppercase letter; hooks match use[A-Z0-9].