0.0.34 • Published 8 years ago
racer-react v0.0.34
Racer.js wrapper for React which allows to create realtime isomorphic applications with offline support.
In a few words racer-react allows you to query racer model in declarative way from react-router handlers:
import React, { Component } from "react";
import { Connect } from "racer-react";
import { connectRacer } from 'racer-react';
class TestPage extends Component {
_submit( ev ){
ev.preventDefault();
this.props.racerModel.add( "test", {
message: this.refs.message.value,
});
}
render() {
return (
<div>
<form onSubmit={ this._submit.bind( this ) }>
<textarea ref="message" } />
<button>Add</button>
</form>
<ul>
{ this.props.testList.map( (item, i) => {
<li key={ i }>{ item.id }</li>
}}
</ul>
</div>
)
}
}
export default connectRacer(
query => {
query( "test", {} ).pipeAs( "testList" );
},
)(TestPage);
Full list of racer features is here.
Usage examples.
0.0.34
8 years ago
0.0.33
8 years ago
0.0.31
8 years ago
0.0.30
8 years ago
0.0.29
8 years ago
0.0.28
8 years ago
0.0.27
8 years ago
0.0.26
8 years ago
0.0.25
8 years ago
0.0.24
8 years ago
0.0.23
8 years ago
0.0.22
8 years ago
0.0.21
8 years ago
0.0.20
8 years ago
0.0.19
8 years ago
0.0.18
8 years ago
0.0.17
8 years ago
0.0.16
8 years ago
0.0.15
8 years ago
0.0.14
8 years ago
0.0.13
8 years ago
0.0.12
8 years ago
0.0.11
8 years ago
0.0.10
8 years ago
0.0.9
8 years ago
0.0.8
8 years ago
0.0.7
8 years ago
0.0.6
8 years ago
0.0.5
8 years ago
0.0.4
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago