Skip to content

Instantly share code, notes, and snippets.

@kino6052
Created February 27, 2021 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kino6052/6cb6cfb6a55ad7238ba0242029c32fb2 to your computer and use it in GitHub Desktop.
Save kino6052/6cb6cfb6a55ad7238ba0242029c32fb2 to your computer and use it in GitHub Desktop.
const initialState: IState = {
input: "",
isInStockOnly: false,
products: [
{
id: "0",
category: "Sporting Goods",
price: "$49.99",
stocked: true,
name: "Football"
},
{
id: "1",
category: "Sporting Goods",
price: "$9.99",
stocked: true,
name: "Baseball"
},
{
id: "2",
category: "Sporting Goods",
price: "$29.99",
stocked: false,
name: "Basketball"
},
{
id: "3",
category: "Electronics",
price: "$99.99",
stocked: true,
name: "iPod Touch"
},
{
id: "4",
category: "Electronics",
price: "$399.99",
stocked: false,
name: "iPhone 5"
},
{
id: "5",
category: "Electronics",
price: "$199.99",
stocked: true,
name: "Nexus 7"
}
],
productsToDisplay: ["0", "1", "2", "3", "4", "5"]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment