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
Show hidden characters
{ | |
"extends": "./tsconfig.paths.json", | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es5", | |
"lib": ["es6", "dom", "esnext.asynciterable"], | |
"sourceMap": true, | |
"allowJs": true, | |
"moduleResolution": "node", | |
"forceConsistentCasingInFileNames": true, |
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
{ | |
"compilerOptions": { | |
"baseUrl": ".", | |
"paths": { | |
"@src/*": ["src/*"] | |
} | |
} | |
} |
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
{ | |
"compilerOptions": { | |
"module": "commonjs", | |
"target": "es5", | |
"lib": ["es6", "dom", "esnext.asynciterable"], | |
"sourceMap": true, | |
"allowJs": true, | |
"moduleResolution": "node", | |
"forceConsistentCasingInFileNames": true, | |
"noImplicitReturns": true, |
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'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import { observer } from 'mobx-react'; | |
@observer | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<div className="App"> |
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
const { | |
addDecoratorsLegacy, | |
disableEsLint, | |
override | |
} = require("customize-cra"); | |
module.exports = { | |
webpack: override( | |
disableEsLint(), | |
addDecoratorsLegacy() |
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
const { | |
addDecoratorsLegacy, | |
disableEsLint, | |
override | |
} = require("customize-cra"); | |
module.exports = { | |
webpack: override( | |
disableEsLint(), | |
addDecoratorsLegacy() |
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, inject } from 'mobx-react' | |
import "./Login.css" | |
@inject("testStore") | |
@observer | |
class Login extends Component { | |
@observable email = '' |
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' | |
import "./Login.css" | |
@observer | |
class Login extends Component { | |
@observable email = '' | |
@observable passwords = '' |
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 { observable, action } from 'mobx' | |
class TestStore { | |
@observable userList | |
constructor() { | |
this.userList = [] | |
} | |
@action.bound |
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 { connect } from "react-redux"; | |
import AppContainer from "./presenter"; | |
import { actionCreators as photoActions } from "../../redux/modules/photos"; | |
import { actionCreators as userActions } from "../../redux/modules/user"; | |
const mapStateToProps = (state, ownProps) => { | |
const { user } = state; | |
return { | |
isLoggedIn: user.isLoggedIn, | |
profile: user.profile |