My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What does `this` reference in react within meteor

NaN's photo
NaN
·Apr 22, 2017

using, this.state.mystate in react within meteor spits out reference errors. Whats happening.?

btw I just want to rerender my component by toggling state rather than use forceUpdate()

read:

forums.meteor.com/t/how-does-meteor-handle-..

"Basically you don't call setState yourself, the component updates itself when the data changes" -->how do achieve a rerender in meteor then?

using forceUpdate()`shows this error:

Exception in delivering result of invoking 'login.js': TypeError: this.forceUpdate is not a function