Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to use react fragment

//the same way you'd use any other element 
//except that it doesn't support keys or attributes.

render() {
  return (
    <>
      <p>Hello</p>
      <p>World!</p>
    </>
  );
}

 
PREVIOUS NEXT
Tagged: #react #fragment
ADD COMMENT
Topic
Name
5+3 =