my-cat-app/ ├── src/ │ ├── main.nks # Entry point │ ├── components/ │ │ └── CatCard.nks │ └── assets/ │ └── yarn.png ├── neko.config.json └── index.html Open src/components/CatCard.nks :
According to internal tests on the "Catnip Benchmark" (1000 reactive nodes updating simultaneously): Neko Script - FE -
@js // This runs in vanilla JS context const localStorageKey = 'cat_preferences'; my-cat-app/ ├── src/ │ ├── main
import NekoBus from 'neko-core'; // Emit an event NekoBus.emit('fish:caught', weight: 5, type: 'Tuna' ); import NekoBus from 'neko-core'
return ( <div class="cat-card"> <h2>🐱 name</h2> <p>Laps given: lapCount</p> <button meow:click=giveLap> Scratch Ears </button> </div> );
By continuing to use the site, you agree to the use of cookies. more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.