Difference between revisions of "React"

From Wiki2
Line 23: Line 23:
so mixins[Navigation] doesn't work
so mixins[Navigation] doesn't work


Before you export add an object called contextTypes with a key of router like so
after you define the class and before you export add an object called contextTypes with a key of router like so


  Signup.contextTypes = {
  Signup.contextTypes = {

Revision as of 12:41, 28 September 2015


https://mail.google.com/mail/u/0/#inbox/14fb843aaad89ffe

http://react.rocks/tag/WebSockets

https://github.com/gritzko/todomvc-swarm

https://github.com/kriasoft/react-starter-kit

http://tylermcginnis.com/reactjs-tutorial-pt-2-building-react-applications-with-gulp-and-browserify/

https://facebook.github.io/react/docs/forms.html

https://facebook.github.io/react/docs/interactivity-and-dynamic-uis.html

http://react-bootstrap.github.io/components.html#input

http://javascript.tutorialhorizon.com/2015/06/06/using-context-and-childcontext-in-react/

react-router

with es6 classes mixins are not allowed so mixins[Navigation] doesn't work

after you define the class and before you export add an object called contextTypes with a key of router like so

Signup.contextTypes = {
  router: React.PropTypes.func.isRequired
};
module.exports = Signup;

then you can use transitionTo like so:

this.context.router.transitionTo('login')