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
[](https://pub.dev/documentation/react/latest/)
7
7
@@ -40,12 +40,29 @@ If you are not familiar with the ReactJS library, read this [react tutorial](htt
40
40
41
41
#### HTML
42
42
43
-
In a `.html` file, include the native javascript`react` and `react_dom` libraries
43
+
In a `.html` file, include the javascript libraries
44
44
_(provided with this library for compatibility reasons)_ within your `.html` file,
45
45
and also add an element with an `id` to mount your React component.
46
46
47
-
Lastly, add the `.js` file that Dart will generate. The file will be the name of the `.dart` file that
48
-
contains your `main` entrypoint, with `.js` at the end.
47
+
This library is in the process of migrating to React 18, but while this is happening it will continue to support both React 17 and React 18. The React 17 js files are deprecated but available to ease migration and will be removed at some point in a future major version.
| Development | ReactDOM | packages/react/react_dom.js |
60
+
| Production | React & ReactDOM | packages/react/react_with_react_dom_prod.js |
61
+
| Production | React | packages/react/react_prod.js |
62
+
| Production | ReactDOM | packages/react/react_dom_prod.js |
63
+
64
+
Lastly, add the `.js` file that Dart will generate. The file will be the name of the `.dart` file that contains your `main` entrypoint, with `.js` at the end.
65
+
49
66
50
67
```html
51
68
<html>
@@ -55,15 +72,14 @@ contains your `main` entrypoint, with `.js` at the end.
55
72
<body>
56
73
<div id="react_mount_point">Here will be react content</div>
0 commit comments