https://github.com/gaearon/react-blessed-hot-motion
A console app demo using React for rendering, animation, and hot reloading
https://github.com/gaearon/react-blessed-hot-motion
Last synced: 2 days ago
JSON representation
A console app demo using React for rendering, animation, and hot reloading
- Host: GitHub
- URL: https://github.com/gaearon/react-blessed-hot-motion
- Owner: gaearon
- License: mit
- Created: 2015-08-26T10:51:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-17T03:00:37.000Z (over 7 years ago)
- Last Synced: 2025-04-12T00:28:56.195Z (4 days ago)
- Language: JavaScript
- Size: 255 KB
- Stars: 277
- Watchers: 8
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blessed - react-blessed-hot-motion
README
# react-blessed-hot-motion
This is a demo of a custom [React Blessed](https://github.com/Yomguithereal/react-blessed/) console renderer (warning: very early preview, many things don’t work) using [React Motion](https://github.com/chenglou/react-motion) for animation, and Webpack for listening to code hot updates.
It also demonstrates the use of [React Transform Babel plugin](https://github.com/gaearon/babel-plugin-react-transform/) together with:
* [react-transform-webpack-hmr](https://github.com/gaearon/react-transform-webpack-hmr) for live editing React components;
* [react-transform-catch-errors](https://github.com/gaearon/react-transform-catch-errors) for catching errors inside `render()`.
If you still don’t believe it, yes, it’s a proper command line Node application (no DOM or JSDOM or anything—it uses [Blessed](https://github.com/chjj/blessed) under the hood) that is written with React and can use some tools and libraries from React ecosystem. And you can edit it live. And even catch errors inside `render()`:

It is based on [@jlongster](jlongster.com)’s amazing [Backend with Webpack](https://github.com/jlongster/backend-with-webpack) example that shows how to integrate hot reloading into a Node (server) app.
Of course, it is only possible thanks to [Yomguithereal](https://github.com/Yomguithereal)’s work on [React Blessed](https://github.com/Yomguithereal/react-blessed/).
## Running
```
git clone https://github.com/gaearon/react-blessed-hot-motion.git
cd react-blessed-hot-motion
npm install
npm start
```You may then edit files inside `src/components/*`. Not everything works, as [React Blessed](https://github.com/Yomguithereal/react-blessed/) is hardly feature complete, but you should be able to tweak colors and change text while the app is running.