Svelte: Communication Between ComponentsFebruary 26th [email protected] the_rock Sasha Software Developer from monday to friday (Healthcare sector), Game Developer in free timeIn this mini-tutorial we are going to see two different ways of communication between components in Svelte 3: a callback passed as prop and event dispatcher.
Callback communicationA callback method is the way you do communication between components in React.
A parent component passes a callback method to a child, and then, child invokes it.
Events based communicationThis one is a typical way you do communication in Vue.js (although, it also allows you to use callbacks as props).
It consist of 3 components: App (parent component), SecretValue (events based communication) and GuessComponent (prop passing).

Comments to: Svelte: Communication Between Components

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

Login

Welcome to Typer

Brief and amiable onboarding is the first thing a new user sees in the theme.
Join Typer
Registration is closed.