Botão
unknown
javascript
9 months ago
463 B
7
Indexable
class Button extends React.Component { render() { const { variant, content, ...others } = this.props; return ( <button className={variant} {...others}> {content} </button> ) } } React.render( <div> <Button content="verde" variant="green" /> <Button content="Azulzin" /> <Button content="Vermeio" variant="red" /> </div>, document.getElementById('root') );
Editor is loading...
Leave a Comment