Skip to content

Commit

Permalink
Update index.rst Usage React with AssetMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
xDeSwa authored Jun 26, 2024
1 parent 8ebcbd7 commit 3467b12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/React/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ Because the JSX format isn't pure JavaScript, using this library with AssetMappe
requires some extra steps.

.. note::

Compile your ``.jsx`` files to pure JavaScript files. This can be done by
installing Babel and the ``@babel/preset-react`` preset. Example:
https://github.com/symfony/ux/blob/2.x/ux.symfony.com/package.json
Expand Down Expand Up @@ -156,6 +157,7 @@ Also, inside of your ``.jsx`` files, when importing another component, use the
registerReactControllerComponents();
.. note::

Do not use **require.context** parameter. Not working with AssetMapper

5- Finally, run the 'build' command below so that we can use the React components you wrote or installed.
Expand Down

0 comments on commit 3467b12

Please sign in to comment.