8000 Merge branch '5.0' into 5.1 · symfony/symfony-docs@a0db786 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0db786

Browse files
committed
Merge branch '5.0' into 5.1
* 5.0: Update reactjs.rst Add link to SymfonyCasts React.js tutorial Update vuejs.rst
2 parents ae912d8 + 12fda02 commit a0db786

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

frontend/encore/reactjs.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
Enabling React.js
22
=================
33

4-
Using React? First enable support for it in ``webpack.config.js``:
4+
.. admonition:: Screencast
5+
:class: screencast
6+
7+
Do you prefer video tutorials? Check out the `React.js screencast series`_.
8+
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``:
517

618
.. code-block:: terminal
719
@@ -26,3 +38,5 @@ install any missing dependencies. After running that command and restarting
2638
Encore, you're done!
2739

2840
Your ``.js`` and ``.jsx`` files will now be transformed through ``babel-preset-react``.
41+
42+
.. _`React.js screencast series`: https://symfonycasts.com/screencast/reactjs

frontend/encore/vuejs.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Enabling Vue.js (``vue-loader``)
22
================================
33

4+
.. admonition:: Screencast
5+
:class: screencast
6+
7+
Do you prefer video tutorials? Check out the `Vue screencast series`_.
8+
49
Want to use `Vue.js`_? No problem! First enable it in ``webpack.config.js``:
510

611
.. code-block:: diff
@@ -188,3 +193,4 @@ you can import them with ``require()`` function:
188193
.. _`JSX with Vue.js`: https://github.com/vuejs/jsx
189194
.. _`Scoped Styles`: https://vue-loader.vuejs.org/guide/scoped-css.html
190195
.. _`CSS Modules`: https://github.com/css-modules/css-modules
196+
.. _`Vue screencast series`: https://symfonycasts.com/screencast/vue

0 commit comments

Comments
 (0)
0