From d0c49cc3e8490517d53c1cad4c73955a0a2fa7f9 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sat, 20 Apr 2019 18:49:45 -0400 Subject: [PATCH] tweak blog post --- site/content/blog/2019-04-20-write-less-code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/blog/2019-04-20-write-less-code.md b/site/content/blog/2019-04-20-write-less-code.md index 4f6007e175..07dcc903a6 100644 --- a/site/content/blog/2019-04-20-write-less-code.md +++ b/site/content/blog/2019-04-20-write-less-code.md @@ -111,7 +111,7 @@ It's unusual for the difference to be *quite* so obvious — in my experience, a ### Top-level elements -In Svelte, a component can have as many top-level elements as you like. In React and Vue, a component must have a single top-level element — in React's case, trying to return two top-level elements from a component function would result in syntactically invalid code. (You can use a fragment — `<>` — instead of a `
`, but it's the same basic idea). +In Svelte, a component can have as many top-level elements as you like. In React and Vue, a component must have a single top-level element — in React's case, trying to return two top-level elements from a component function would result in syntactically invalid code. (You can use a fragment — `<>` — instead of a `
`, but it's the same basic idea, and still results in an extra level of indentation). In Vue, your markup must be wrapped in a `