Botão
unknown
javascript
a year ago
463 B
10
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