Comments (2)
In Svelte 5, components are no longer classes, so the ability to extends a component isn't technically possible. Furthermore, you can now use snippets in Svelte 5 to extract out duplicated logic and re-use that accordingly within a component without needing multiple versions of a class.
from svelte.
@trueadm Thank you, I've read about Snippets.
Please tell, will Snippets allow to create new components foundation on the base component? Redefining styles and save scope for styles? I don't see that in the documentation. According to the current documentation, it seems to be the "are a way to create reusable chunks of markup inside your components"
from svelte.
Related Issues (20)
- enhancement(custom element): svelte 5 should automatically set converters based on types
- [svelte5] use $state infinite loop bug > effect_update_depth_exceeded HOT 4
- bindable props "is declared but its value is never read" HOT 1
- Directive shorthand syntax is too lenient and can generate invalid code HOT 2
- $props & $derived should use let instead of const HOT 3
- This 'for each' case doesn't work HOT 2
- `$derived.by` not working as expected outside Svelte components HOT 2
- bug(repl): broken onclick `e.preventDefault()` in svelte 5 REPL HOT 1
- Svelte 5, I'm using `$state.snapshot` but a nested array is still a `Proxy`
- Calculated CSS unit HOT 2
- `read_pattern` fails if brackets are in strings etc HOT 2
- Expose `set_raf` in Svelte 5 HOT 1
- Svelte 5 Next 164: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory HOT 1
- [email protected] breaks snippets with arguments typed as an object literal HOT 11
- setTimeout does not rerender component when using lifecycle functions HOT 1
- [ Svelte 5 + SortableJS ] Cannot read properties of null (reading 'nextSibling') since 5.0.0-next.162 HOT 1
- Whitespaces are not preserved in non-`pre` tags, even with `white-space; pre;` on. HOT 2
- $effect fails in some cases HOT 3
- Svelte 5: Missing warning for non-state use in `$effect`? HOT 5
- Svelte 5: compiler silently fail when snippet is not properly parsed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.