def useState(var_name: str, default: str | None = None) -> Var:  # noqa: N802
    """Create a useState hook with a variable name and setter name.

    Args:
        var_name: The name of the variable.
        default: The default value of the variable.

    Returns:
        A useState hook.
    """
    return const(
        [var_name, f"set{var_name.capitalize()}"],
        Var(
            _js_expr=f"useState({default})",
            _var_data=VarData(imports=_compose_react_imports(["useState"])),
        ),
    )
Create a useState hook with a variable name and setter name.

    Args:
        var_name: The name of the variable.
        default: The default value of the variable.

    Returns:
        A useState hook.
    
reflex/experimental/hooks.py