GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - meiersi/blaze-react: A blaze-html style ReactJS binding for Haskell using GHCJS

BranchesTags
Open more actions menu

Latest commit

 

History

108 Commits
108 Commits

Folders and files

NameName
Last commit message
Last commit date
jsbits
jsbits
 
 
reactjs-bindings
reactjs-bindings
 
 
src
src
 
 
todomvc
todomvc
 
 
.ghci
.ghci
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.markdown
README.markdown
 
 
Setup.hs
Setup.hs
 
 
blaze-react.cabal
blaze-react.cabal
 
 
cabal.config
cabal.config
 
 

Repository files navigation

blaze-react v0.1

*** NOTE: Looking for the latest version (v0.2)? Check out the feat-dev-mode branch (recommended).***

These are experimental bindings for ReactJS using GHCJS. The rendering API is modeled analogously to blaze-html and the application architecture is based on simply specifying the complete UI state together with the state transitions that implement the application's logic.

This purity simplifies both implementation and debugging. For example one can generically implement a time-machine wrapper which wraps an application such that one can go back and inspect all intermediate states. To see it in action, take a look at the classic TodoMVC example in todomvc directory, which is also available online.

Building

First of all, make sure you have ghcjs installed (including the patched version of cabal), as well as nodejs and npm.

Blaze-react depends on ghcjs-ffiqq, which is not on hackage, so you'll have to install it from github. The suggested way is to run cabal sandbox add-source <path to a checkout of ghcjs-ffiqq>. Once this is done, you need to do a bit of fairly standard set-up, and then you can build the library:

make dev-tools
cabal install --only-dep
cabal configure
make build

If you want to build the example app as well (found in the 'todomvc' directory) then you should configure the project with the build-example flag set:

cabal configure -fbuild-example
make build
open todomvc/index.html

Known problems

  • The versions in the .cabal file are not properly pinned, which might lead to build problems.
  • The extra-sources field is missing some files, which means cabal sdist won't work.

Acknowledgements

  • The bindings were heavily inspired by Luite Stegeman's virtual-dom bindings.
  • Alex Sayers implemented the Clock and TimeMachine examples.
  • Tomas Carnekcy helped debug some nasty GHCJS FFI issues.

About

A blaze-html style ReactJS binding for Haskell using GHCJS

Resources

Readme
MIT license
Activity

Stars

108 stars

Watchers

14 watching

Forks

14 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.