Add basic button class
This commit is contained in:
parent
2dd4da6939
commit
45c2922f1f
@ -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
14
src/components/Button.js
Normal 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
|
Loading…
Reference in New Issue
Block a user