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
// Main.jsx | |
import React from 'react' | |
import { DefaultButton } from 'office-ui-fabric-react/lib/Button' | |
import { TextField } from 'office-ui-fabric-react/lib/TextField' | |
import { Consumer as AppStateConsumer } from '../AppWithState' | |
const renderMain = ({ | |
state: { | |
root: { txt, sync } |
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
// AppWithState.jsx | |
import React, { Component, createContext } from 'react' | |
import App from './App' | |
const { Provider, Consumer } = createContext('app-state') | |
class AppWithState extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { |
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
### Keybase proof | |
I hereby claim: | |
* I am pegiadise on github. | |
* I am lefteris_p (https://keybase.io/lefteris_p) on keybase. | |
* I have a public key ASCvT6BCf7APqd2zp5ScUHSLiaF5tbHSdkjoYsAXzlNOuwo | |
To claim this, I am signing this object: |
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
{"lastUpload":"2018-11-23T14:58:20.230Z","extensionVersion":"v3.2.0"} |