{"library":"reshow-runtime","title":"reshow-runtime","description":"Babel runtime alternative designed to replace @babel/runtime in projects using the Reshow ecosystem. Current stable version: 0.17.15. Release cadence: irregular; major breaking changes in v0.16.0 (switched to createReducer for all stores) and v0.13-beta (moved urlDispatch/UrlReturn to reshow-url). Key differentiators: lighter footprint, supports optional chaining (?.) and nullish coalescing (??), and provides helper functions for React/Redux-like patterns. Not recommended for projects outside the Reshow framework.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install reshow-runtime"],"cli":null},"imports":["import { createReducer } from 'reshow-runtime';","import { toMap } from 'reshow-runtime';","import { connectHook } from 'reshow-runtime';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { createReducer, toMap } from 'reshow-runtime';\n\nconst initialState = { count: 0 };\nconst reducer = createReducer({\n  increment: (state) => ({ count: state.count + 1 }),\n  decrement: (state) => ({ count: state.count - 1 }),\n}, initialState);\n\nconst state = { count: 0 };\nconst newState = reducer(state, { type: 'increment' });\nconsole.log(newState); // { count: 1 }\n\nconst immutableObject = { a: { b: 1 } };\nconst jsObject = toMap(immutableObject);\nconsole.log(jsObject.a.b); // 1 (JS object instead of immutable Map)","lang":"typescript","description":"Demonstrates use of createReducer and toMap from reshow-runtime with a simple counter reducer.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}