AG-2178 Add docs and example on how to use Context API with React

This commit is contained in:
Sean Landsman
2018-10-16 17:42:29 +01:00
parent 518a95ee89
commit 4998a51817
4 changed files with 16 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ import GridComponent from "./GridComponent";
import gridData from "./gridDataReducer";
import FontContext from './fontContext'
let store = createStore(gridData);
/*
@@ -26,7 +28,9 @@ export default class SimpleReduxExample extends Component {
<div>
<h1>Simple Redux Example using Connected React Components</h1>
<HeaderComponent/>
<GridComponent/>
<FontContext.Provider value="bold">
<GridComponent/>
</FontContext.Provider>
</div>
</Provider>
)