Skip to content
Client and Server-side React (React.js) rendering in a Symfony Bundle
PHP
Branch: master
Clone or download

Latest commit

nacmartin Merge pull request #48 from romainbou/patch-1
Fix link to external node SSR server example
Latest commit 53aacdc May 25, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DependencyInjection add route node name in TreeBuilder constructor Nov 28, 2019
Resources Fix link to external node SSR server example May 14, 2020
.gitignore Splitting bundle in bundle+lib Jan 21, 2017
LICENSE Minor changes in text files Nov 22, 2017
LimeniusReactBundle.php Cache support Nov 22, 2017
README.md Update README.md Aug 10, 2018
composer.json
ruleset.xml 👷 🔧 🔨 Add code style, doc blocks update Nov 18, 2016

README.md

ReactBundle

ReactBundle integrates ReactRenderer with Symfony. This lets you implement React.js client and server-side rendering in your Symfony projects, allowing the development of universal (isomorphic) applications.

Note: If you are new to React.js, please note that this bundle is not by any means required to use React with Symfony. This allows you to do some advanced features such as Server Side Rendering, or injecting components directly from Twig tags.

Features include:

  • Prerender server-side React components for SEO, faster page loading, and users that have disabled JavaScript.
  • Twig integration.
  • Client-side render will take the server-side rendered DOM, recognize it, and take control over it without rendering again the component until needed.
  • Error and debug management for server and client side code.
  • Simple integration with Webpack.

Latest Stable Version Latest Unstable Version License

Example

For a complete example, with a sensible Webpack set up and a sample application to start with, check out Symfony React Sandbox.

Documentation

The documentation for this bundle is available in the Resources/doc directory of the bundle:

Installation

All the installation instructions are located in the documentation.

License

This bundle is under the MIT license. See the complete license in the bundle:

LICENSE.md

Credits

ReactBundle is heavily inspired by the great React On Rails, and uses its npm package to render React components.

The installation instructions have been adapted from https://github.com/KnpLabs/KnpMenuBundle. Because they were great.

With Silex

Silex was discontinued in June 2018. However, if you wish to use ReactRenderer with Silex, check out @teameh Silex React Renderer Service Provider.

You can’t perform that action at this time.