- Fe - - Neko Script

// Listen in another component NekoBus.on('fish:caught', (data) => nya totalFish += data.weight; ); Neko Script - FE - is 100% interoperable with JS. Use the @js directive to embed vanilla JavaScript:

import mount from 'neko-dom'; import CatCard from './components/CatCard.nks'; const appRoot = document.getElementById('app'); mount(appRoot, <CatCard initialName="Mochi" />); Neko Script - FE -

@js // This runs in vanilla JS context const localStorageKey = 'cat_preferences'; // Listen in another component NekoBus

async function loadCatFacts() const response = await claw('https://catfact.ninja/fact'); nya fact = response.data.fact; // Listen in another component NekoBus.on('fish:caught'

my-cat-app/ ├── src/ │ ├── main.nks # Entry point │ ├── components/ │ │ └── CatCard.nks │ └── assets/ │ └── yarn.png ├── neko.config.json └── index.html Open src/components/CatCard.nks :

nya preference = localStorage.getItem(localStorageKey) || 'Night mode'; Neko Script simplifies HTTP requests with the claw keyword, which auto-cancels pending requests if a component unmounts (solving a major React pain point).