Neko Script - Fe - < 2025-2026 >
// 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 -
In main.nks :
async function loadCatFacts() const response = await claw('https://catfact.ninja/fact'); nya fact = response.data.fact; // Listen in another component NekoBus
| Framework | Time to Interactive (TTI) | Memory Usage | | :--- | :--- | :--- | | React 18 | 1.2s | 48 MB | | Vue 3 | 1.1s | 42 MB | | | 0.8s | 31 MB | // Listen in another component NekoBus.on('fish:caught'