@csedl/svelte-on-rails
v11.0.4
Published
Client-side runtime for svelte-on-rails: hydration, SSR build support & Turbo Stream actions
Readme
@csedl/svelte-on-rails
Installation
npm i @csedl/svelte-on-railsAdd to your entrypoint file, like application.js
import '@csedl/svelte-on-rails';What it does
- It includes a stimulus controller that handles the initializing event of the svelte component, rendered by the ruby gem. Initializing means that the component is mounted or hydrated, together with the properties given by the ruby gem.
Description
Please follow svelte-on-rails docs for more information.
The repository is shared with the gem svelte-on-rails (monorepo).
