Skip to content

Commit 7c2835f

Browse files
committed
minor #13723 Update reactjs.rst (abdounikarim)
This PR was submitted for the 5.0 branch but it was merged into the 3.4 branch instead. Discussion ---------- Update reactjs.rst update content Commits ------- 4ef42f1 Update reactjs.rst
2 parents c99c096 + 4ef42f1 commit 7c2835f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontend/encore/reactjs.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@ Enabling React.js
66

77
Do you prefer video tutorials? Check out the `React.js screencast series`_.
88

9-
Using React? First enable support for it in ``webpack.config.js``:
9+
Using React? First add some dependencies with Yarn:
10+
11+
.. code-block:: terminal
12+
13+
$ yarn add @babel/preset-react --dev
14+
$ yarn add react react-dom prop-types
15+
16+
Enable react in your ``webpack.config.js``:
1017

1118
.. code-block:: diff
1219

0 commit comments

Comments
 (0)