Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document higher order components #1702

Closed
kylecordes opened this issue Aug 28, 2018 · 4 comments
Closed

Document higher order components #1702

kylecordes opened this issue Aug 28, 2018 · 4 comments

Comments

@kylecordes
Copy link

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.

@ekhaled
Copy link
Contributor

ekhaled commented Aug 29, 2018

Related full convo #1648

@PaulMaly
Copy link
Contributor

@kylecordes Maybe we should move this issue to docs repo?

@kylecordes
Copy link
Author

@PaulMaly Yes... I hadn't noticed doc issues were over there instead. Will check for dups, and reopen there.

@kylecordes
Copy link
Author

moved to sveltejs/v2.svelte.dev#353

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants