Myvideo

Guest

Login

How to use Svelte component inside a React app

Uploaded By: Myvideo
1 view
0
0 votes
0

✨❓ Svelte Question Time ❓✨ “You have a Svelte question, I have an answer“ 😱😍 How to use a Svelte component inside a React app? 00:00 We are going write a wrapper component in React, that wraps around our Svelte component. Setting up 01:09 The React app was created using create-react-app, which ejected to support custom webpack configuration to import .svelte module. Instantiating Svelte component 05:01 Passing props from React to Svelte 08:06 Two-way data binding 09:20 Listen to events 15:36 Svelte internal API for binding 18:52 Passing context from React to Svelte 30:34 Calling Svelte component methods from React 37:20 Updating props from React 46:25 --- 📝 Source Code 🎧 Svelte Tutorial for Beginners 🎧 Svelte Question Time 📚 Related Resources Svelte Svelte REPL

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later