You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Simple pure-React component so we don't have to remember
// Bootstrap's classes
var BootstrapButton = React.createClass({
render: function() {
// transferPropsTo() is smart enough to merge classes provided
// to this component.
return this.transferPropsTo(
<a href="javascript:;" role="button" className="btn">
{this.props.children}
</a>
);
}
});
Would class="btn" be equivalent to className="btn"? Is one preferred over the other?
The text was updated successfully, but these errors were encountered:
in the jquery-bootstrap example, I see:
Would class="btn" be equivalent to className="btn"? Is one preferred over the other?
The text was updated successfully, but these errors were encountered: