Skip to content
sample node-webrender project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
hmr.js
package-lock.json
package.json
tsconfig.json

README.md

screenshot

brew-cleaner

Sample react application for node-webrender so that you can see what's supported and how to setup your environment if you want to play with this too.

Notes

  • it is currently calling execSync() so the pause you experience is actually ruby runtime so maybe your first excercise might to make it async and add loading state :-)
  • scrolling is choppy but it's actually not a performance issue, there's currently no threading so event-loop has to be polled for events (every 1/30 of a second)
  • the library is far from being useful but it's getting better every day

Development

To start an application with HMR enabled

git clone https://github.com/cztomsik/brew-cleaner
cd brew-cleaner
npm i
npm run dev

You can then do changes to the code and it should refresh instantly (or with just little pause). Some errors are tolerated but some might just crash so maybe you can use nodemon or something if that is an issue for you.

You can start react-devtools with react-devtools if you have them installed globally.

You can also start application without HMR but it's not that much fun.

npm start

TODO

Show how to ship native app.

You can’t perform that action at this time.