tag: 'Svelte: extracting code from components to plain JS modules'

Narrow your search:

    Log in Sign up
    4 Matching Annotations
    1. Nov 2021
    2. stackoverflow.com stackoverflow.com
      Svelte: How to pass data back to svelte component from javascript file
      4
      1. TylerRick 16 Nov 2021
        in Public
        Svelte: extracting code from components to plain JS modules
      2. TylerRick 16 Nov 2021
        in Public
        The consumer component will barely change from our last example. The only difference is the way we'll get a reference to our store (since now the store is exported from the JS module):
        Svelte: extracting code from components to plain JS modules refactoring/rewrite: example good example
      3. TylerRick 16 Nov 2021
        in Public
        Now your whole WS logic can be encapsulated in your JS module. That makes for good separation of concern.
        separation of concerns encapsulation Svelte: extracting code from components to plain JS modules
      4. TylerRick 16 Nov 2021
        in Public
        Stores are the idiomatic Svelte way when you need to import "reactivity" from your normal JS sources.
        Svelte: reactivity Svelte: the Svelte way Svelte: extracting code from components to plain JS modules simple explanation
      Visit annotations in context

      Tags

      • encapsulation
      • separation of concerns
      • good example
      • simple explanation
      • refactoring/rewrite: example
      • Svelte: the Svelte way
      • Svelte: extracting code from components to plain JS modules
      • Svelte: reactivity

      Annotators

      • TylerRick

      URL

      stackoverflow.com/questions/60948306/svelte-how-to-pass-data-back-to-svelte-component-from-javascript-file
    Share:
    Group. Only group members will be able to view this annotation.
    Only me. No one else will be able to view this annotation.
    Hypothes.is
    • About
    • Blog
    • Bioscience
    • Education
    • Jobs
    • Help
    • Contact
    • Terms of Service
    • Privacy Policy