Comments (1)
You can use performEvent and performEventAsync to execute arbitrary IO actions in reflex-dom, which suffices for many library integrations. As far as actually calling into and back from JS, you'll have to use the JSFFI built by luite for GHCJS. For more info on that, take a look at https://github.com/ghcjs/ghcjs-examples/blob/master/mloc-js/src/Demo/JavaScriptFFI.hs
I've also written a more involved example at https://github.com/ryantrinkle/try-reflex/blob/master/examples/host.hs that covers what you would need to do to write your own library in the style of reflex-dom (e.g.: for integrating with a framework that completely abstracts away the DOM).
from reflex-platform.
Related Issues (20)
- Infinite recursion with `wasm` shell
- Problem starting the GHC Nix Shell HOT 5
- Can't build network depends using nix-build
- android build is broken on develop HOT 1
- network-3.1.1.1 and ghcjs HOT 2
- Support for ARM host builds of Android targets? HOT 1
- Issue building frontend on ARM64 Linux. HOT 3
- Adaptive icons for Android Oreo&up
- GHC version support HOT 2
- App Store rejects apk as being not zipalign processed HOT 2
- How to target Android API version 30 HOT 3
- try-reflex reports "cannot connect to socket" and "cannot coerce null to a string" HOT 2
- ListLike-4.7.2 compiling error using ghc_8_10 in develop branch HOT 1
- No ghc-8.10.4 for M1 macOS HOT 2
- Strange Hoogle error on opening a Nix shell HOT 3
- ghcjs-dom-jsffi breaks android builds HOT 2
- Caching for aarch64-linux? HOT 2
- "cannot connect to socket" on macOS aarch64 HOT 4
- Cannot bootstrap GHC on aarch64 HOT 3
- try-reflex script outdated or not setting up properly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflex-platform.