5 Matching Annotations
- Mar 2021
-
www.jackfranklin.co.uk www.jackfranklin.co.uk
-
Svelte is different in that by default most of your code is only going to run once; a console.log('foo') line in a component will only run when that component is first rendered.
Tags
- opinion
- important point
- opinionated
- Svelte vs. React
- turning things around / doing it differently
- difference
- trying to doing things the same way you did in a different library/framework (learning new way of thinking about something / overcoming habits/patterns/paradigms you are accustomed to)
- unfortunate defaults
- reasonable defaults
Annotators
URL
-
- Oct 2020
-
www.bobvila.com www.bobvila.com
-
took advantage of your imposed staycation
-
-
github.com github.com
-
Svelte doesn't re-render, so you need to respond to component mount/dismount and prop changes separately as they are distinct concepts and never tied together, unlike in React.
Tags
- trying to doing things the same way you did in a different library/framework (learning new way of thinking about something / overcoming habits/patterns/paradigms you are accustomed to)
- distinction
- UI library: reacting to prop changes
- lifecycle callbacks
- different way of thinking about something
Annotators
URL
-
-
medium.com medium.com
-
Sometimes, you may be tempted to write that wrapper. Because all your (React or Vue or insert your reactive framework here) instincts tell you so.Resist the temptation. There is a better way. A svelter way. Introducing: the use-directive (a.k.a. “actions”).
-
However, especially when starting out, it’s very easy to fall into the “this is how I did things in my previous framework” trap.
Tags
- Svelte: action (use:)
- getting a fresh perspective
- Svelte
- different way of thinking about something
- overcoming preconceived opinions
- trying to doing things the same way you did in a different library/framework (learning new way of thinking about something / overcoming habits/patterns/paradigms you are accustomed to)
- paradigm shift
Annotators
URL
-