Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 789 Bytes

File metadata and controls

20 lines (13 loc) · 789 Bytes

Counter Block

This is an example about a block that gets data from the journeys and send data back, it is built using React and React to Web Component

npm install --force
npm start

How the app works?

The app is a react component exported as a standard web component, it will get the needed props of value and set value. it will pass around the value as an object

Getting Started

Configure your custom block in the Journey Builder for local development:

Point Bundle URL to http://localhost:3000/static/js/bundle.js and use the Tag name counter-block as configured in ./src/index.tsx

In the Args section, add the following key-value pairs: person, anyname