0.0.6 • Published 3 years ago
@yireo-training/pwa-studio-example-targetables-react-component v0.0.6
Yireo Example for Adobe PWA Studio targetables.reactComponent
This little NPM package demos code for using the targetables.reactComponent call in Adobe PWA Studio.
NPM installation
To install this package, run the following command in the root of your PWA project:
yarn add @yireo-training/pwa-studio-example-targetables-react-componentMake sure to update your root package.json to add this vendor as trusted:
{
...
"pwa-studio": {
"targets": {
"intercept": "./local-intercept.js"
},
"trusted-vendors": [
"@yireo-training"
]
}
}
### Local installation
Alternatively, clone the sources of this repository to a folder `src/yireo/example` and add the following to the `dependencies` of your roots `package.json` file:
```json
{
"dependencies": {
"@yireo-training/pwa-studio-example-targetables-react-component": "src/yireo/example"
}
}