Skip to content

Commit 69f1555

Browse files
authored
Update Examples page with embeds (#3320)
* Add a package.json to counter-vanilla for CodeSandbox use * Fix example links and add first sandbox embed * Try adding Parcel setup for counter-vanilla * Add counter-vanilla sandbox with temp branch link * Add sandboxes for other examples * Add counter-vanilla README * Format readme * Remove todos-flow embed due to compile issues
1 parent e20b12e commit 69f1555

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

counter-vanilla/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Redux Counter Vanilla Example
2+
3+
This example does not require a build system or a view framework, and exists to show the raw Redux API used with ES5.
4+
5+
As Dan said [in the original PR for this example]():
6+
7+
> The new Counter Vanilla example is aimed to dispel the myth that Redux requires Webpack, React, hot reloading, sagas, action creators, constants, Babel, npm, CSS modules, decorators, fluent Latin, an Egghead subscription, a PhD, or an Exceeds Expectations O.W.L. level.
8+
>
9+
> Nope, it's just HTML, some artisanal `<script>` tags, and plain old DOM manipulation. Enjoy!
10+
11+
To try this example, just download the HTML file and open it in your browser.
12+
13+
(The `package.json` in this folder only exists to allow using this folder as a CodeSandbox embed, and is not required
14+
to run the HTML file.)

counter-vanilla/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "counter-vanilla",
3+
"version": "1.0.0",
4+
"description": "A simple counter implemented using Redux",
5+
"main": "index.html",
6+
"scripts": {
7+
"start": "parcel index.html --open",
8+
"build": "parcel build index.html"
9+
},
10+
"dependencies": {},
11+
"devDependencies": {
12+
"@babel/core": "^7.2.0",
13+
"parcel-bundler": "^1.6.1"
14+
}
15+
}

0 commit comments

Comments
 (0)