-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
e20b12e
commit 69f1555
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Redux Counter Vanilla Example | ||
|
||
This example does not require a build system or a view framework, and exists to show the raw Redux API used with ES5. | ||
|
||
As Dan said [in the original PR for this example](): | ||
|
||
> 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. | ||
> | ||
> Nope, it's just HTML, some artisanal `<script>` tags, and plain old DOM manipulation. Enjoy! | ||
To try this example, just download the HTML file and open it in your browser. | ||
|
||
(The `package.json` in this folder only exists to allow using this folder as a CodeSandbox embed, and is not required | ||
to run the HTML file.) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "counter-vanilla", | ||
"version": "1.0.0", | ||
"description": "A simple counter implemented using Redux", | ||
"main": "index.html", | ||
"scripts": { | ||
"start": "parcel index.html --open", | ||
"build": "parcel build index.html" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@babel/core": "^7.2.0", | ||
"parcel-bundler": "^1.6.1" | ||
} | ||
} |