lordfrontend/src/Buttons.js

23 lines
503 B
JavaScript

import React from 'react'
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import './Buttons.css';
export default class NavButton extends React.Component {
render() {
return (
<li className="nav-item">
<Button name={this.props.name} />
</li>
);
}
}
export class Button extends React.Component {
render() {
return (
<button className="btn1">{this.props.name}</button>
);
}
}