Skip to content

Commit

Permalink
refactor: better performances
Browse files Browse the repository at this point in the history
  • Loading branch information
alindesign committed May 27, 2020
1 parent 94d05b9 commit 3181b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ func main () {
#### Elements
Built in shortcuts to HTML elements
```go
element := react.H1(nil, "child 2")
div := react.Div(nil, "child 1", element)
element := react.H1(nil, react.Text("child 2"))
div := react.Div(nil, react.Text("child 1"), element)
```
#### Fragments
```go
fragment := react.Fragment(
react.H1(nil, "Title"),
react.H3(nil, "text"),
react.H1(nil, react.Text("Title")),
react.H3(nil, react.Text("text")),
)
```

Expand Down

0 comments on commit 3181b67

Please sign in to comment.