0.0.34 • Published 9 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
9 years ago
0.0.33
9 years ago
0.0.31
9 years ago
0.0.30
9 years ago
0.0.29
9 years ago
0.0.28
9 years ago
0.0.27
9 years ago
0.0.26
9 years ago
0.0.25
9 years ago
0.0.24
9 years ago
0.0.23
9 years ago
0.0.22
9 years ago
0.0.21
9 years ago
0.0.20
9 years ago
0.0.19
9 years ago
0.0.18
9 years ago
0.0.17
9 years ago
0.0.16
9 years ago
0.0.15
9 years ago
0.0.14
9 years ago
0.0.13
9 years ago
0.0.12
9 years ago
0.0.11
9 years ago
0.0.10
9 years ago
0.0.9
9 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago