Skip to content

Commit 46c6319

Browse files
committed
update README
1 parent 23b90d1 commit 46c6319

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

README.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,9 @@ With **MoonScript**, you can develop dynamic and scalable web applications with
4040
Here's a simple component written in **MoonScript** that demonstrates how easy it is to define components, properties, and styles:
4141

4242
```ruby
43-
component HelloWorld {
44-
property color = "#333"
45-
property done = false
46-
property label = ""
47-
48-
style label {
49-
font-weight: bold;
50-
color: #{color};
51-
flex: 1;
52-
53-
if (done) {
54-
text-decoration: line-through;
55-
}
56-
}
57-
43+
component Main {
5844
fun render {
59-
<div>
60-
<span::label>
61-
label
62-
</span>
63-
</div>
45+
<div>"Hello World!"</div>
6446
}
6547
}
6648
```

0 commit comments

Comments
 (0)