Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { observer } from 'mobx-react';
- @observer
- class Test extends React.Component{
- render(){
- const { student } = this.props; // it's @observable object
- return (
- <div>{student.name}</div>
- )
- }
- }
Add Comment
Please, Sign In to add comment