Skip to content

Instantly share code, notes, and snippets.

View Joe1220's full-sized avatar

Joe1220

View GitHub Profile
@Joe1220
Joe1220 / App.js
Last active November 24, 2018 03:57
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) {
import React, { Component } from 'react';
import { observable } from 'mobx'
import { observer } from 'mobx-react'
@observer
class App extends Component {
@observable email = ''
@observable password = ''
render() {
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 = ''
import React from 'react'
interface IProps {
name: string
email: string
}
interface IState {
age: number
}
import React from 'react'
interface IProps {
name: string
email: string
}
interface IState {
age: number
}
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
interface User {
id: number;
name: string;
address: string;
wait: boolean;
}
const info = {
id: "1",
name: "joe1220",
interface User {
id: number;
name: string;
address: string;
wait: boolean;
}
const info = {
id: "1",
interface User {
id: number;
name: string;
address: string;
wait: boolean;
}
const info = {
id: "1",
name: "joe1220",
interface User {
id: number;
name: string;
address: string;
wait: boolean
}
const info = {
id: "1",
name: "joe1220",