|
5 years ago | |
---|---|---|
.github | 5 years ago | |
dist | 5 years ago | |
docs | 5 years ago | |
examples | 5 years ago | |
src | 5 years ago | |
.gitignore | 5 years ago | |
README.md | 5 years ago | |
babel.config.js | 5 years ago | |
package.json | 5 years ago | |
yarn.lock | 5 years ago |
A lightweight state management layer for Alpine.js
Include the following <script>
tag in the <head>
of your document:
<script src="/path/to/spruce.js">
Important: This must be added before loading Alpine.js when using CDN links.
If you wish to include Spruce with your own bundle:
yarn add @ryangjchandler/spruce
Then add the following to your script:
import Spruce from '@ryangjchandler/spruce'