Created
October 22, 2018 10:14
-
-
Save Joe1220/f939e0dc06103a873d72fd26285e299a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import { observable } from 'mobx' | |
import { observer } from 'mobx-react' | |
@observer | |
class App extends Component { | |
@observable email = '' | |
@observable password = '' | |
render() { | |
return ( | |
<div className="App"> | |
<header as="h2">Login</header> | |
<input name="email" placeholder="Email" fluid /> | |
<input | |
name="password" | |
type="password" | |
placeholder="Password" | |
fluid | |
/> | |
<button>Submit</button> | |
</div> | |
); | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment