Hello world in React Templates

Simple "Hello world" HTML transformed into React JavaScript code.

rt-if

This shows the use of rt-if.

rt-repeat

This uses rt-repeat to show multiple items and rt-scope to create a reusable name for multiple calculations.

rt-props

rt-props is used to pass all the original properties set on this component (except the ones used for the component logic: onClick and eventId) to the element that will actually represent this component.

Improved todo list

Every project needs a todo list example, so here is ours.

Weather

This example shows working with async events, the usage of regular event handler function pointers instead of lambda expression, and working with two-way binding.

rt-import

This example shows how to load other React components and libraries into a React template and then use them within the template.

AMD

This example shows the rt-require sample output with AMD support.

CommonJS

This example shows the rt-require sample output with CommonJS support.

ES6

This example shows the rt-require sample output with ES6 support.