A cookbook of sample SatchelJS code
Перейти к файлу
Scott Mikula 39793ed242 Fix for newer versions of node 2024-01-03 14:29:09 -08:00
.vscode adding a single test to illustrate how to test mutators and mock store 2017-09-13 14:22:46 -07:00
recipes polish & adding pointers into the example 2017-09-13 13:57:11 -07:00
src Update build dependencies (#38) 2022-10-01 16:53:09 -07:00
views modifying recipe structure 2017-09-13 12:56:30 -07:00
.gitignore modifying recipe structure 2017-09-13 12:56:30 -07:00
.prettierignore Add a .prettierignore file (#40) 2022-10-01 16:55:12 -07:00
.prettierrc Run prettier in precommit hook 2019-03-12 14:25:10 -07:00
CONTRIBUTING.md Add a CONTRIBUTING.md file 2022-10-01 16:28:42 -07:00
LICENSE Initial commit 2017-08-22 16:02:28 -07:00
README.md Minor updates to README.md 2019-03-13 15:06:45 -07:00
SECURITY.md Microsoft mandatory file 2022-08-29 14:02:49 +00:00
package.json Fix for newer versions of node 2024-01-03 14:29:09 -08:00
server.js introduce express, pug, webpack-dev-middleware to make maintaining lots of examples easier 2017-09-06 15:43:15 -07:00
tsconfig.json Update TypeScript 2019-03-13 11:43:06 -07:00
tslint.json WIP: initial commit of cookbooks 2017-08-22 16:04:33 -07:00
webpack.config.js Update webpack 2019-03-13 11:57:36 -07:00
yarn.lock Bump decode-uri-component from 0.2.0 to 0.2.2 (#43) 2022-12-05 15:54:40 -08:00

README.md

SatchelJS Cookbook

This cookbook centers around a single example of a book shop. There are several recipes in the form of Markdown files under the "recipes" directory that point to various parts of the example inside the discussion section.

Recipes

  1. Simple state changes
  2. Access store data from inside components
  3. Update shared state from different parts of the UI
  4. Independent state changes from one single action
  5. Coordinating related state changes from one single action
  6. Persist updates on server with network calls

Running the examples

git clone https://github.com/microsoft/satcheljs-cookbook
yarn
yarn start

Open your browser to http://localhost:3000 and click on an example.

Running tests

yarn test

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.