You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, a Svelte user asked if svelte has "higher-order components", like React (and many others). Rich pointed to the following example (which he tweeted previously) ofof doing this.
Therefore, a documentation request: document higher order components in the official Guide.
Although it is a relatively advanced idea (thus some risk of confusing a new reader), nonetheless it would prevent someone comparing alternative technologies, from erroneously concluding that Svelte lacks this capability.
I'm not sure if we should proceed by documenting the solution proposed by Rich as official since it does not provides support for SSR among other concerns.
Recently, a Svelte user asked if svelte has "higher-order components", like React (and many others). Rich pointed to the following example (which he tweeted previously) ofof doing this.
https://svelte.technology/repl?version=2.10.1&gist=b42e56c57e390b85e7c3c16349205cc6
Therefore, a documentation request: document higher order components in the official Guide.
Although it is a relatively advanced idea (thus some risk of confusing a new reader), nonetheless it would prevent someone comparing alternative technologies, from erroneously concluding that Svelte lacks this capability.
There is more discussion of the details of HOC at sveltejs/svelte#1648 .
The text was updated successfully, but these errors were encountered: