This example uses purescript-react-basic to implement a simple calculator. demo
- yarn start
- open http://localhost:4008/ in a browser
- yarn bundle:rollup
- yarn bundle:pulp
- yarn bundle:purs
Notes:
- bundle:rollup requires commenting out the following line in
Web.HTML.HTMLTrackElement:
"default": $foreign["default"],
to build correctly. - bundle.rollup.js requires changing
import 'react'
toimport './react.js'
andimport 'react-dom'
toimport './react-dom.js'
to run. - bundle.purs.js and bundle.pulp.js require additional build steps to run since browsers can't require commonjs modules without additional help.