react-renderable is a small set of primitives for deciding what to render in React. Each one accepts a Renderable, which can be either a component or a React node, so you can use the same slot with both.
Package: npmjs.com/package/react-renderable
Documentation: dev.robertoattanasio.com/react-renderable
npm install react-renderableThe package expects React 19 and React DOM 19 in your project; both are peer dependencies.
The primitives cover common rendering patterns, including conditional content, lists, wrappers, and portals. See the individual guides for details:
For the available project scripts and what they do, see docs/scripts.md.