Skip to content

Commit 4ef42f1

Browse files
abdounikarimjaviereguiluz
authored andcommitted
Update reactjs.rst
update content
1 parent c99c096 commit 4ef42f1

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)