From 8310cb53cfb1a045680d534fc18378aa17009218 Mon Sep 17 00:00:00 2001 From: David Vega Date: Mon, 30 Dec 2024 13:03:27 -0600 Subject: [PATCH] Update index.rst to note that Webpack Encoure bundle should be installed first If not working with AssetManager. This will help newcomers not have to remove the UX React bundle if they wanted it to modify what is created through the Webpack Encore bundle. --- src/React/doc/index.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/React/doc/index.rst b/src/React/doc/index.rst index 2261bf9cd8c..55f5fe10b7c 100644 --- a/src/React/doc/index.rst +++ b/src/React/doc/index.rst @@ -14,6 +14,7 @@ Symfony UX React supports React 18+. Installation ------------ +Make sure you have WebpackEncore if you are not working with AssetMapper. You can install and configure Webpack Encore through the `Symfony Encore bundle`_. This will modify your ``base.html.twig`` template and create ``assets/app.js``, in addition to adding and modifying other configuration, which will in turn help you get started faster with the UX React bundle. .. note:: @@ -156,3 +157,4 @@ https://symfony.com/doc/current/contributing/code/bc.html .. _`Symfony UX initiative`: https://ux.symfony.com/ .. _`Symfony UX React demo`: https://ux.symfony.com/react .. _`Turbo`: https://turbo.hotwire.dev/ +.. _`Symfony Encore bundle`: https://symfony.com/doc/current/frontend/encore/installation.html