Created
June 16, 2017 16:51
-
-
Save DreySkee/363433e2358ebb16f9f7a012b7b95368 to your computer and use it in GitHub Desktop.
10 - Wordpress API + ReactJS (Updated)
This file contains hidden or 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 DataStore from 'flux/stores/DataStore.js' | |
class Home extends React.Component { | |
render() { | |
let allData = DataStore.getAll(); | |
console.log(allData); | |
return ( | |
<div> | |
<h2>Hello world!</h2> | |
</div> | |
); | |
} | |
} | |
export default Home; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment