-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Spyna/develop
updated documentation and examples
- Loading branch information
Showing
18 changed files
with
405 additions
and
199 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
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
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 |
---|---|---|
|
@@ -9,14 +9,79 @@ | |
<meta name="theme-color" content="#000000" /> | ||
|
||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<link | ||
href="https://fonts.googleapis.com/icon?family=Material+Icons" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/mustard-ui@latest/dist/css/mustard-ui.min.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" | ||
/> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.13.0/themes/prism.min.css" | ||
/> | ||
|
||
<title>spyna-react-store</title> | ||
<link | ||
rel="stylesheet" | ||
href="https://use.fontawesome.com/releases/v5.0.9/css/solid.css" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://use.fontawesome.com/releases/v5.0.9/css/fontawesome.css" | ||
/> | ||
|
||
<title>@spyna/react-store</title> | ||
</head> | ||
|
||
<body> | ||
<h1>React shared store</h1> | ||
<section> | ||
<div class="panel"> | ||
<div class="panel-head"> | ||
<p class="panel-title">@spyna/react-store <a href="https://github.com/Spyna/react-store">View on GitHub</a></p> | ||
</div> | ||
<div class="panel-body"> | ||
<p> | ||
<a href="https://www.npmjs.com/package/@spyna/react-store" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/c6f2dacadd965745d3fe511bf0b70ff48899fe87/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f407370796e612f72656163742d73746f72652e737667" alt="NPM" data-canonical-src="https://img.shields.io/npm/v/@spyna/react-store.svg" style="max-width:100%;"></a> | ||
<a href="https://standardjs.com" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/58fbab8bb63d069c1e4fb3fa37c2899c38ffcd18/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d7374616e646172642d627269676874677265656e2e737667" alt="JavaScript Style Guide" data-canonical-src="https://img.shields.io/badge/code_style-standard-brightgreen.svg" style="max-width:100%;"></a> | ||
<a href="https://circleci.com/gh/Spyna/workflows/react-store" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/ab44337af01686c437ad2c6f5a65c5b84e2fef73/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f5370796e612f72656163742d73746f72652f6d61737465722e7376673f7374796c653d666c61742d737175617265" alt="CircleCI" data-canonical-src="https://img.shields.io/circleci/project/github/Spyna/react-store/master.svg?style=flat-square" style="max-width:100%;"></a> | ||
|
||
<a href="https://bundlephobia.com/result?p=@spyna/[email protected]" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/e4fe09f4723077eb76e1a4422105b0d234536e8b/68747470733a2f2f696d672e736869656c64732e696f2f62756e646c6570686f6269612f6d696e7a69702f407370796e612f72656163742d73746f72652e7376673f7374796c653d666c61742d737175617265" alt="Bundle Phobia" data-canonical-src="https://img.shields.io/bundlephobia/minzip/@spyna/react-store.svg?style=flat-square" style="max-width:100%;"></a> | ||
|
||
<a href="https://www.npmjs.com/package/@spyna/react-store" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/727dca580c0a91df8989ed41b39d8d3635e02f97/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f64742f407370796e612f72656163742d73746f72652e7376673f7374796c653d666c61742d737175617265" alt="Npm downloads" data-canonical-src="https://img.shields.io/npm/dt/@spyna/react-store.svg?style=flat-square" style="max-width:100%;"></a> | ||
|
||
<a href="https://www.npmjs.com/package/@spyna/react-store" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/c6b45bda4b0c38375a226eceaa4e05e205226a5d/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f646570656e64656e63792d76657273696f6e2f407370796e612f72656163742d73746f72652f706565722f72656163742e7376673f7374796c653d666c61742d737175617265" alt="React Version" data-canonical-src="https://img.shields.io/npm/dependency-version/@spyna/react-store/peer/react.svg?style=flat-square" style="max-width:100%;"></a> | ||
|
||
<p>React app state management that uses a shared storage</p> | ||
<a href="https://codecov.io/gh/Spyna/react-store" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/39c03f0d43b53932417dc8935468ca8dbdaa69fd/68747470733a2f2f636f6465636f762e696f2f67682f5370796e612f72656163742d73746f72652f6272616e63682f6d61737465722f67726170682f62616467652e737667" alt="codecov" data-canonical-src="https://codecov.io/gh/Spyna/react-store/branch/master/graph/badge.svg" style="max-width:100%;"></a> | ||
<a href="https://www.codefactor.io/repository/github/spyna/react-store/overview/master" rel="nofollow" class="rich-diff-level-one"><img src="https://camo.githubusercontent.com/3a66876f30d1a4f5d9e1007ae6bd17af80d5b017/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f5370796e612f72656163742d73746f72652f62616467653f7374796c653d666c61742d737175617265" alt="codefactor" data-canonical-src="https://www.codefactor.io/repository/github/Spyna/react-store/badge?style=flat-square" style="max-width:100%;"></a> | ||
</p> | ||
<p> | ||
This library gives you the ability to manage the state of a React app. It | ||
uses a global store, shared with all the bound components of the | ||
application. | ||
</p> | ||
<p> | ||
The <code>store</code> is created using the function | ||
<code>createStore</code>. This function is similar to the | ||
<em>redux Provider</em>. | ||
</p> | ||
<p> | ||
To bind a Component to the store you use the function | ||
<code>withStore</code>. This function injects in the Component a | ||
<em>prop</em> called <code>store</code>, whereby you can read, write, | ||
and remove data globally within the application. | ||
</p> | ||
</div> | ||
</section> | ||
<div id="root"> | ||
<noscript> You need to enable JavaScript to run this app. </noscript> | ||
</div> | ||
|
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
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
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
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
Oops, something went wrong.