Last active
November 6, 2018 19:15
-
-
Save luxplanjay/a2dd2cacde2297ff3b0e5da4f1a97a64 to your computer and use it in GitHub Desktop.
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
/* | |
Возьмите домашнее задание №12 и перепишите его ипользуя паттерн MVC. | |
Вынесите отдельно логику, отдельно представление и реакцию на действия пользователя. | |
Model, View и Controller вынести в отдельные файлы и сделать классами. | |
Используйте ES6 модули и Webpack для сборки. | |
Использование будет выглядеть следующим образом. | |
*/ | |
// в index.js | |
import Model from './model'; | |
import View from './view'; | |
import Controller from './controller'; | |
const model = new Model(); | |
const view = new View(); | |
new Controller(model, view); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment