定制 limenius/react-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

limenius/react-bundle

最新稳定版本:v5.1.0

Composer 安装命令:

composer require limenius/react-bundle

包简介

Client and Server-side react rendering in a Symfony Bundle

README 文档

README

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.

统计信息

  • 总下载量: 1.11M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 387
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 387
  • Watchers: 21
  • Forks: 49
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-02-14