Last active
February 24, 2019 10:55
-
-
Save Harshmakadia/1d50134ddc261752a27222aa1d1d59e1 to your computer and use it in GitHub Desktop.
Create Context
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 from 'react'; | |
export default React.createContext({ | |
products: [ | |
{ id: 'p1', title: 'React 16 Sticker + T-shirt', price: 29.99 }, | |
{ id: 'p2', title: 'Vue.js T-shirt', price: 9.99 }, | |
{ id: 'p3', title: 'Angular T-shirt', price: 8.99 }, | |
{ id: 'p4', title: 'JS Notebook', price: 2.99 } | |
], | |
cart: [], | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment