React Integration
Using React within WooNooW Addons
The Challenge
External addons cannot bundle React because WooNooW already ships with a React runtime. Bundling it again would cause conflicts and bloat.
Solution: Exposed Runtime
WooNooW exposes its React instance and Component library on the window object.
Core Setup (How it works internally)
Addon implementation
Level 1: Vanilla JS (No Build)
Good for simple injections.
Level 2: React with Build (Recommended)
Use vite or webpack and configure React as an external.
vite.config.js
Index.tsx
Last updated Jan 31, 2024
