You are browsing the documentation for Symfony 4.0 which is not maintained anymore.
Consider upgrading your projects to Symfony 5.2.
Using React? Make sure you have React installed, along with the babel-preset-react:
$ yarn add --dev babel-preset-react $ yarn add react react-dom prop-types
Enable react in your
1 2 3 4 5 6 7
// webpack.config.js // ... Encore // ... .enableReactPreset() ;
That’s it! Your
.jsx files will now be transformed through
This work, including the code samples, is licensed under a Creative Commons BY-SA 3.0 license.