Skip to main content

create_jsx_attr

Function create_jsx_attr 

Source
pub fn create_jsx_attr(name: &str, value: JSXAttrValue) -> JSXAttr
Expand description

Creates a JSXAttr from a name and value.

§Arguments

  • name - The name of the attribute
  • value - The value of the attribute

§Example

let jsx_attr = create_jsx_attr("name", value);