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 { observable, action } from 'mobx' | |
import { observer } from 'mobx-react' | |
@observer | |
class Login extends Component { | |
@observable email = '' | |
@observable passwords = '' | |
constructor(props) { |
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 { observable } from 'mobx' | |
import { observer } from 'mobx-react' | |
@observer | |
class App extends Component { | |
@observable email = '' | |
@observable password = '' | |
render() { |
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 = '' | |
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 from 'react' | |
interface IProps { | |
name: string | |
email: string | |
} | |
interface IState { | |
age: number | |
} |
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 from 'react' | |
interface IProps { | |
name: string | |
email: string | |
} | |
interface IState { | |
age: number | |
} |
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
class User { | |
public id: number; | |
public name: string; | |
public address: string; | |
public wait: boolean; | |
constructor(id: number, name: string, address: string, wait: boolean) { | |
this.id = id; | |
this.name = name; | |
this.address = address; | |
this.wait - wait |
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
interface User { | |
id: number; | |
name: string; | |
address: string; | |
wait: boolean; | |
} | |
const info = { | |
id: "1", | |
name: "joe1220", |
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
interface User { | |
id: number; | |
name: string; | |
address: string; | |
wait: boolean; | |
} | |
const info = { | |
id: "1", |
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
interface User { | |
id: number; | |
name: string; | |
address: string; | |
wait: boolean; | |
} | |
const info = { | |
id: "1", | |
name: "joe1220", |
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
interface User { | |
id: number; | |
name: string; | |
address: string; | |
wait: boolean | |
} | |
const info = { | |
id: "1", | |
name: "joe1220", |