Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react composition

function FancyBorder(props) {
  return (
    <div className={'FancyBorder FancyBorder-' + props.color}>
      {props.children}    </div>
  );
}
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #react #composition
ADD COMMENT
Topic
Name
8+9 =