Skip to content

Impact

/** * Reactive state management for React */ By CodeSandbox team


⚠️ Release candidate ⚠️


Install impact-react

sh
npm install impact-react

WARNING

Impact requires Explicit Resource Management which is currently a Stage 3 proposal. It works out of the box with latest TypeScript, SWC and ESBuild. Implementations in browsers is on its way. Babel currently requires a Plugin

Install debugger

The Debugger will show you what signals and effects are being executed. With sourcemaps you'll see the exact point in the file where signals are changed.

By importing the debugger package it will enable warnings when observation is not enabled using the using keyword.

sh
npm install impact-react-debugger
ts
if (import.meta.env.DEV) {
  import("impact-react-debugger");
}

TIP

Hit SHIFT twice to toggle the debugger

Released under the MIT License.