i trying use contextin reactjs keep getting warning react have tried playing as can nothing seems work,
i read post send comments, didn't much.
followed few online tutorials cant seem solve problem, not sure doing wrong.
the error: warning: owner-based , parent-based contexts differ (values: `` vs ``) key (filteritems) while mounting categoriechooser
here layout
var application = react.createclass({ childcontexttypes: { filteritems: react.proptypes.array }, getchildcontext: function() { return { filteritems: [] }; }, render: function() { return ( <div> <banner /> <categoriechooser /> </div> ); } }); var categoriechooser = react.createclass({ contexttypes: { filteritems: react.proptypes.array }, ... })
Comments
Post a Comment