You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _blogposts/2024-02-01-release-11-1.mdx
+17-5Lines changed: 17 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,9 @@ description: |
8
8
Unleashing ReScript from React
9
9
---
10
10
11
-
A couple of weeks ago, the ReScript team released ReScript 11.0, which laid ground work for a lot of possible improvements to make it easier to interact with the JavaScript ecosystem. It also came with a lot of breaking changes, unfortunately.
11
+
A couple of weeks ago, the ReScript team released ReScript 11.0, which laid ground work for a lot of possible improvements to make it easier to interact with the JavaScript ecosystem.
12
12
13
-
Good news, this next minor release has none of them. Instead we have some wonderful additions to the ReScript toolbelt for you today.
13
+
This next minor has some wonderful additions to the ReScript toolbelt for you today.
14
14
15
15
To install, use your favorite package manager to install the new compiler release, e.g:
16
16
@@ -30,6 +30,8 @@ This release comes with support for [tagged templates](https://developer.mozilla
30
30
31
31
A tag function in JavaScript is a function that expects an array of strings and variadic parameters as input. Now it's possibe to bind to such functions with the new [`@taggedTemplate`](/syntax-lookup#taggedTemplate-decorator) decorator:
We lifted restrictions on JSX tag names. This means you no longer need to use the [illegal identifier syntax](/docs/manual/latest/use-illegal-identifier-names) to use tag names that contain hyphens:
101
+
We lifted restrictions on JSX tag names. This means you no longer need to escape tag names that contain hyphens:
90
102
91
103
Previously:
92
104
@@ -99,14 +111,14 @@ Now:
99
111
100
112
```rescript
101
113
let x = <custom-tag />
102
-
let y= <Foo.custom-tag />
114
+
let y= <Foo.custom-tag />
103
115
```
104
116
105
117
## Acknowledgements
106
118
107
119
Once again we want to thank everyone from the community who volunteered their precious time to support this project with contributions of any kind, from documentation, to PRs, to discussions in the forum. But especially we want to thank the following people, who helped landing this release:
0 commit comments