This file contains 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
brew install mysql |
This file contains 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.scss'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="App"> | |
생략 | |
</div> | |
); |
This file contains 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
{ | |
test: /\.css$/, | |
use: [ | |
'...생략' | |
], | |
}, | |
// 추가될 scss 설정 | |
{ | |
test: /\.scss$/, | |
loaders: [ |
This file contains 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
yarn eject | |
yarn add sass-loader node-sass |
This file contains 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
yarn eject | |
yarn add babel-preset-mobx |
This file contains 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
{ | |
"앞부분은": "생략", | |
"babel": { | |
"presets": [ | |
"react-app", | |
"mobx" | |
] | |
}, | |
"이후 코드도": "생략" | |
} |
This file contains 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 {observer} from 'mobx-react'; | |
// decorator를 사용하는 경우 | |
@observer | |
class TodoListView extends Component { | |
render() { | |
return <div> | |
생략 | |
</div> |
This file contains 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 { decorate, observable } from "mobx" | |
class Todo { | |
id = Math.random(); | |
title = ""; | |
finished = false; | |
} | |
decorate( Todo, { | |
title: observable, | |
finished: observable |
This file contains 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 } from "mobx" | |
class Todo { | |
id = Math.random(); | |
@observable title = ""; | |
@observable finished = false; | |
} |
This file contains 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
{ | |
"name": "eject-demo", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"autoprefixer": "7.1.6", | |
"babel-core": "6.26.0", | |
"babel-eslint": "7.2.3", | |
"babel-jest": "20.0.3", | |
"babel-loader": "7.1.2", |