Created
April 24, 2020 14:18
-
-
Save erdemuslu/4a0e42a4710384507b3a9250a82048bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from 'react'; | |
import { inject, observer } from 'mobx-react'; | |
const View = (observer(({ Store }) => { | |
useEffect(() => { | |
console.log('view mounted'); | |
}, []); | |
return ( | |
<div> | |
{ Store.name } | |
<h1>Sarki sozu:</h1> | |
</div> | |
); | |
})); | |
export default inject((stores) => ({ | |
Store: stores.Store, | |
}))(View); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment