Create A Widget
Steps
- To start a new workspace, copy
package.jsonandtsconfig.jsonfromexamples/into the workspace root, then runnpm install.xo.config.jsandxoinpackage.jsonare optional. - Keep
package.jsonandtsconfig.jsonat the package root, with each widget in a first-level subdirectory:
text
MyAwaitWidgets/
package.json
tsconfig.json
YourWidget/
index.tsx
AnotherWidget/
index.tsx- Implement
widgetwith components imported fromawait. - Register it with
Await.define. - Check runtime declarations before using unfamiliar components, attributes, or bridge APIs.
- Run
npm test.