From 59a44ef2a499ac022c7f94ddb109e03cda5be37f Mon Sep 17 00:00:00 2001 From: Antony Jones Date: Thu, 25 Apr 2019 11:53:16 +0100 Subject: [PATCH] Provide a "what does it look like" section People who browse github trending (like myself) generally open interesting things in new tabs, skim the readme, and star the project. I think it's important that we don't go straight from a description into how to contribute. Often people won't visit the site, and instead want a super quick glimpse from the readme, before they star the project for later perusal. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 605eee8fa8..be519797f2 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,25 @@ Svelte is a new way to build web applications. It's a compiler that takes your d Learn more at the [Svelte website](https://svelte.dev), or stop by the [Discord chatroom](https://discord.gg/yy75DKs). +## What does it look like? + +Svelte Components are single-file components, which contain HTML, styles, and some JavaScript. At compile time, the component is transformed into vanilla JavaScript, ready for the browser. + +``` + + + +``` + +You can interact with live examples like this one on the [Svelte website](https://svelte.dev). ## Development