├── .babelrc ├── .gitignore ├── README.md ├── components └── post │ ├── DisplayContent.js │ └── UpdateContent.js ├── package.json ├── pages ├── _app.js ├── index.js └── post │ └── [id].js ├── stores ├── PostStore.js ├── UIStore.js └── stores.js ├── utils ├── api.js └── isServer.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/README.md -------------------------------------------------------------------------------- /components/post/DisplayContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/components/post/DisplayContent.js -------------------------------------------------------------------------------- /components/post/UpdateContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/components/post/UpdateContent.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/pages/_app.js -------------------------------------------------------------------------------- /pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/pages/index.js -------------------------------------------------------------------------------- /pages/post/[id].js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/pages/post/[id].js -------------------------------------------------------------------------------- /stores/PostStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/stores/PostStore.js -------------------------------------------------------------------------------- /stores/UIStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/stores/UIStore.js -------------------------------------------------------------------------------- /stores/stores.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/stores/stores.js -------------------------------------------------------------------------------- /utils/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/utils/api.js -------------------------------------------------------------------------------- /utils/isServer.js: -------------------------------------------------------------------------------- 1 | export const isServer = typeof window === 'undefined'; 2 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/borekb/nextjs-with-mobx/HEAD/yarn.lock --------------------------------------------------------------------------------