File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
Enabling React.js
2
2
=================
3
3
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 ``:
5
17
6
18
.. code-block :: terminal
7
19
@@ -26,3 +38,5 @@ install any missing dependencies. After running that command and restarting
26
38
Encore, you're done!
27
39
28
40
Your ``.js `` and ``.jsx `` files will now be transformed through ``babel-preset-react ``.
41
+
42
+ .. _`React.js screencast series` : https://symfonycasts.com/screencast/reactjs
Original file line number Diff line number Diff line change 1
1
Enabling Vue.js (``vue-loader ``)
2
2
================================
3
3
4
+ .. admonition :: Screencast
5
+ :class: screencast
6
+
7
+ Do you prefer video tutorials? Check out the `Vue screencast series `_.
8
+
4
9
Want to use `Vue.js `_? No problem! First enable it in ``webpack.config.js ``:
5
10
6
11
.. code-block :: diff
@@ -188,3 +193,4 @@ you can import them with ``require()`` function:
188
193
.. _`JSX with Vue.js` : https://github.com/vuejs/jsx
189
194
.. _`Scoped Styles` : https://vue-loader.vuejs.org/guide/scoped-css.html
190
195
.. _`CSS Modules` : https://github.com/css-modules/css-modules
196
+ .. _`Vue screencast series` : https://symfonycasts.com/screencast/vue
You can’t perform that action at this time.
0 commit comments