Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSX attributes

// JSX attributes
// The syntax of JSX attributes closely resembles that of HTML attributes. In the block of code, inside of the opening tag of the <h1> JSX element, we see an id attribute with the value "example".

const example = <h1 id="example">JSX Attributes</h1>;
 
PREVIOUS NEXT
Tagged: #JSX #attributes
ADD COMMENT
Topic
Name
4+1 =