Add basic button class

This commit is contained in:
williameriksson126 2020-11-20 11:53:37 +01:00
parent 2dd4da6939
commit 45c2922f1f
2 changed files with 20 additions and 0 deletions

View File

@ -9,6 +9,12 @@ class App extends Component {
render() {
return (
<div className="App">
{/*
<Button
title = "placeholderTitle"
destination = "placeholderDestination"
/>
*/}
<NavigationDrawer />
<Header />
<PageArea />

14
src/components/Button.js Normal file
View File

@ -0,0 +1,14 @@
import React, {Component} from 'react'
class Button extends Component {
render() {
return (
<a href={this.props.destination}>
{this.props.title}
</a>
);
}
}
// TODO Add css
export default Button