1.0.7-beta.3 • Published 1 year ago
swellui v1.0.7-beta.3
Components to build front-end experiences using https://swell.is
Documentation
Installing
npm install swellui
Packages
Name | Version | Downloads |
---|---|---|
swellUi |
Getting Started
Wrap the app with SwellProvier
.
import { CommerceProvider } from "swellui";
function MyApp() {
return (
<CommerceProvider>
<App ... >
<Routes ... >
<Script ... >
</CommerceProvider>
)
}
Now you can use CommerceContext
from anywhere inside App or Routes.
import { CommerceContext } from "swellui";
function Product() {
const {
store: { commerce, products },
} = useContext(CommerceContext);
}
Updating the library (Dev)
- After new updates, the package version should be updated in
package.json
and publish to npm.
1.0.7-beta.1
1 year ago
1.0.7-beta.2
1 year ago
1.0.7-beta.3
1 year ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.1.7
2 years ago
0.1.6
2 years ago
0.1.5
2 years ago
0.1.4
2 years ago
0.1.3
2 years ago
0.1.2
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago