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: CHANGELOG.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
# 2.1.2
2
+
We are now `jsx-standalone` - to continue the minimal approaches of `jsx-no-react` in the past. The previous repo has been archived and abandoned - so this is the new ongoing support.
3
+
1
4
# 2.0.0
2
5
3
6
Breaking changes introduced with rendering modes - `renderAndReplace` is now called `render` to follow common practice with SPA frameworks rendering mechanisms. Additionally, the render locations below are more explicit on where they will place the JSX output. Finally, prepend and append now support top-level JSX fragments (before and after render locations require a top-level container element still).
@@ -25,7 +28,7 @@ Sadly the previous release had old code in it, this release fixes it.
25
28
26
29
This release needs extra care in the babel configuration to make Fragments work.
27
30
You need to replace `babel-plugin-transform-react-jsx` with `@babel/preset-react`.
28
-
Please check the [README](https://github.com/bitboxer/jsx-no-react/blob/main/README.md)
31
+
Please check the [README](https://github.com/jaredsartin/jsx-standalone/blob/main/README.md)
`jsx-no-react` makes it possible to use React's JSX syntax outside of React projects. Using `renderBefore` and `renderAfter` requires a modern browser supporting `Element.insertAdjacentElement()` - all other render modes function in legacy browsers.
3
+
`jsx-standalone` makes it possible to use React's JSX syntax outside of React projects. Using `renderBefore` and `renderAfter` requires a modern browser supporting `Element.insertAdjacentElement()` - all other render modes function in legacy browsers.
6
4
7
5
## Installation
8
6
9
7
```sh
10
-
yarn add jsx-no-react
11
-
```
12
-
13
-
### Upgrading
14
-
15
-
2.0.0 introduces breaking changes with rendering modes - `renderAndReplace` is now called `render` to follow common practice with SPA frameworks rendering mechanisms. Additionally, the render locations below are more explicit on where they will place the JSX output. Finally, prepend and append now support top-level JSX fragments (before and after render locations require a top-level container element still).
@@ -57,10 +42,10 @@ Details on how to inject jsxElem as builder can be found [in the esbuild documen
57
42
58
43
### Basic
59
44
60
-
The `jsx-no-react` package just defines a function to replace the `React.createElement`, so as well as importing the relevant function into scope where you want to use JSX:
45
+
The `jsx-standalone` package just defines a function to replace the `React.createElement`, so as well as importing the relevant function into scope where you want to use JSX:
0 commit comments