Skip to content

haskell-miso/context

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🍜 🧵 miso-context

A demo of miso's React-style, app-global context feature.

A top-level component seeds the global context and mounts three children. Two of them opt into context updates (mountUseContext) and can mutate it (modifyContext / putContext); the third opts out (mount_) and stays stale. Modifying the context from any context-aware component re-renders all of them together.

Source

src/Main.hs

Build and run

Install Nix Flakes, then:

nix develop .#wasm
make
make serve

About

🧵 Example of using Context

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors