Skip to main content

is_hook_name

Function is_hook_name 

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

Check if a name matches the React hook naming convention: use[A-Z0-9]. Ported from TS isHookName in Environment.ts.