Meteor

I’ve just begun looking at meteor for my app development and I have to say on first impressions I like what I see.

I did have some trouble getting started with running meteor on Android.

React comes with built in methods:

Method Name Description
render() The only required method. render() is the method that gets called when the component is ready to be rendered on the screen.
getInitialState() Called before the component is rendered. This defines the values that will exist on the components this.state property before any data loads.
getDefaultProps() Invoked once when the class is created. Values passed here will be set on the components this.prop property if they do not exist on the parent element.
propTypes() Allows you to retrieve and validate the props being passed to your component.
mixins() The mixins array allows you to use mixins to share behavior among multiple components. For example, this is how Meteor supports loading data using a mixin called ReactMeteorData.
statics() Allows you to define static methods that can be called before any component instances are created. Methods defined here do not have access to the props or state of the component.
displayName() Used for debugging. This value is automatically set by JSX using the name of the variable the component is assigned to.
componentWillMount() Invoked once (on the client and server), before the initial rendering of the component takes place. This is most equivalent to Blaze’s Template.name.onCreated.
componentDidMount() Invoked once (on the client only), immediately after the initial rendering of the component takes place. This is most equivalent to Blaze’s Template.name.onRendered.
componentWillReceiveProps() Invoked when a component is receiving new props. This method is not called for the initial render. Used when updating an existing component.
shouldComponentUpdate() Invoked before rendering when new props or state are being received. This method is not called for the initial render or when forceUpdate is used.
componentWillUpdate() Invoked immediately before rendering when new props or state are being received. This method is not called for the initial render.
componentDidUpdate() Invoked immediately before rendering when new props or state are being received. This method is not called for the initial render.
componentWillUnmount() Invoked immediately before a component is unmounted from the DOM. This is most equivalent to Blaze’s Template.name.onDestroyed.

Leave a Reply

Your email address will not be published. Required fields are marked *