CandidDisk / editor-mobx

A demo of mobx as a react-js live "editor"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is editor-mobx?

Demo

This ReactJS project demonstrates a simple element editor built with mobx. It's function is to showcase

  • Reactive rendering of elements & states
  • Basic example of handling the states of a rendered element via MobX State Management of objects & multi-dimentional arrays
  • Creating & submitting new left card "pages" via appending new values into 2d pageList array
  • Live rendering of text & colour change pre-submittion (See local render data in AppStore.js)
  • Filtering keyed items for "re-rendering" of element state (title, sub title, text & background colour, etc)

Currently requires MobX-DevTools, so live demo does not allow for change page yet. Please install locally.

Prerequisites

Npm v6.9.0 or compatible

Refer to https://www.npmjs.com/get-npm

React v16.12.0 or compatible

Refer to create-react-app

MobX-DevTools

#Standalone app for Safari, IE etc.
$ npm install --global mobx-devtools
Currently, page list keys are not displayed, thus requires MobX-DevTools.

Installation

#Clone the repo w/ 
$ git clone https://github.com/MarkTajima101/editor-mobx-eg.git my-project

#Navigate to the generated directory & install dependencies w/
$ npm install

#Start the app w/
$npm start

Open http://localhost:3000 to view it in the browser.

About

A demo of mobx as a react-js live "editor"

License:MIT License


Languages

Language:JavaScript 94.2%Language:CSS 3.6%Language:HTML 2.2%