Log in Sign up
1 Matching Annotations
  1. Sep 2020
  2. github.com github.com
    Allow indicating component "root" element so actions may be used on the component tag · Issue #5218 · sveltejs/svelte
    1
    1. TylerRick 25 Sep 2020
      in Public
      They don't need to add a prop for every action. The action itself can be passed in as a prop. <script> export let action; </script> <div use:action>whatever</div> The argument for the action can be another prop or can be part of the same prop.
      I didn't know you could do that / that was possible! powerful emergent flexibility Svelte: action (use:) component properties (props)
    Visit annotations in context

    Tags

    • flexibility
    • component properties (props)
    • powerful
    • emergent
    • I didn't know you could do that / that was possible!
    • Svelte: action (use:)

    Annotators

    • TylerRick

    URL

    github.com/sveltejs/svelte/issues/5218
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