A set of custom elements wrapped in preact.js that can be uses in Wix's Editor.
- clone the repository:
git clone https://github.com/igorsheg-wix/dynamo-components.git
- install & run:
npm i
npm start
Each "custom element" is a standart preact.js component (a 3kb alternative to React) - learn more about preact.js
At the end of each component, we register it as a custom component using a small helper called preact-custom-element, which allows us to access the custom element's attributes as React's props. Learn more how to use it here