Skip to content

Instantly share code, notes, and snippets.

View neurosnap's full-sized avatar

Eric Bower neurosnap

View GitHub Profile
/*
* This is an experimental view library that would compete with react, svelte, qwik.js, vue.js etc.
*
* Implementation reference: https://git.sr.ht/~erock/alpfx
*
* Features:
* - Instead of `view = func(state)` we have `view = func(event)`
* - This paradigm shift will:
* - make prop mgmt (e.g. when to update component) more manual
* - animations easier (events or transitions are sent to the component that the end-user

saga-toolkit

The goal of this project is to enhance redux-saga core with opinionated ways to use the library.

features

  • helpers for making http requests (e.g. fetch effect)
  • helpers for setting up redux-saga
  • better types with yield delegate
/**
* Features:
* - End-user has more granular control over what events to listen to -- if any
* - Responding to events happens within a while-loop
* - End-users are free to mutate variables all they want, they just need to ensure things get re-rendered properly
* - All events like prop, state changes, click/event handlers are all handled the same
* - `watch` will await for any events coming out of those `Stream`
* It also automatically watches for prop changes
*
* TODO: