Blaze React

screenshot of Blaze React

React templating for Meteor

Overview:

Blaze React is a Meteor package that provides React templates in a familiar Blaze API. It allows developers to use Blaze features such as helpers, events, onRendered, onCreated, and Spacebars within React components. The purpose of using React in conjunction with Blaze is to improve page rendering speed, enable SEO without Spiderable, and provide accessibility for users without JavaScript.

Features:

  • .html to ReactTemplate conversion
  • Blaze helpers
  • Blaze helper context with data from the context
  • Blaze onCreated event
  • Blaze events
  • Blaze onRendered event
  • Blaze onDestroyed event
  • Blaze autorun
  • Blaze subscribe
  • Spacebars {{helper}} (SafeString)
  • Spacebars {{helper ..args}} (SafeString) with arguments
  • Spacebars {{{helper}}} (raw HTML)
  • Spacebars {{{helper ..args}}} (raw HTML) with arguments
  • Spacebars "{{helper}}" (SafeString - In Attribute Values)
  • Spacebars ={{helper}} (SafeString - Dynamic Attribute Value)
  • Spacebars {{#if}}
  • Spacebars {{else}} {{/if}}
  • Spacebars {{else}} {{/if}} (nested)
  • Spacebars {{#each}}
  • Spacebars {{#each in}}
  • Spacebars {{else}} {{/each}}
  • Spacebars {{else in}} {{/each}}
  • Spacebars {{else}} {{/each}} (nested)
  • Spacebars {{#with}}
  • Spacebars {{else}} {{#with}}
  • Spacebars {{else}} {{#with}} (nested)
  • Spacebars {{#unless}}
  • Spacebars {{else}} {{/unless}}
  • Spacebars {{else}} {{/unless}} (nested)

Summary:

Blaze React is a Meteor package that allows developers to use React templates in a Blaze API, providing the benefits of React while maintaining the familiarity and ease of use of Blaze. With features such as Blaze helpers, events, and Spacebars support, developers can leverage the power of React without having to learn a completely new framework. The installation process is straightforward, requiring the addition of the package to your Meteor project and the conversion of Blaze templates to React components using the provided utility.