Skip to content

Instantly share code, notes, and snippets.

@unk
Created Jul 1, 2018
Embed
What would you like to do?
import React, {Component} from 'react';
import {observer} from 'mobx-react';
// decorator를 사용하는 경우
@observer
class TodoListView extends Component {
render() {
return <div>
생략
</div>
}
}
export default TodoListView;
// decorator를 사용하지 않는 경우
class TodoListView extends Component {
render() {
return <div>
생략
</div>
}
}
export default observer( TodoListView );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment