npm install --save @use-gpu/live
yarn add @use-gpu/live
Docs: https://usegpu.live/docs/reference-live-@use-gpu-live
Live is a reimplementation of the React <Component>
tree and its hook system. It allows you to use popular reactive patterns to write code beyond UI widgets.
It's built to serve as the reactive core of Use.GPU, but there is nothing GPU- or graphics-specific about it.
Unlike React, Live does not produce an output DOM. Components can only render other components, or yield values back to parents.
Live is designed to play nice with real React, but shares no code with it.
Non-React extensions:
if
/else
with hooks safely.react-react
).Modules
@use-gpu/live
is the main effect run-time@use-gpu/react
contains extra React interoperability components@use-gpu/inspect
is an interactive inspector/debugger for Live, built using ReactMade by Steven Wittens. Part of @use-gpu
.