Merge pull request #1 from williameriksson126/we-basicButtonClass
Add basic button class
This commit is contained in:
commit
43ecf76337
@ -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