// wrap the component in observer function from mobx-react packageconstFunction=observer(())=>{....}// or use useObserver hook from mobx-react packageconstFunction=useObserver(())=>{....}
For more details, you can read this section of mobx docs.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Decorators are optional. I have mentioned the alternatives without decorators in the article.
And with the React 16.8 Hooks update, 'hooks let you use more of React’s features without classes'. And you can easily use Mobx with functional components ( no classes, no decorators ).
For more details, you can read this section of mobx docs.