You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a directory under <b>src/widgets</b> and put your code in there.
15
+
16
+
```
17
+
src/
18
+
widgets/
19
+
MyApp/index.js
20
+
```
21
+
22
+
When connecting to a local development server, you can specify the "widget" query parameter within your browser to switch between widgets (e.g. `http://localhost:5000/?widget=MyApp`).
23
+
24
+
### Query Parameters
25
+
26
+
Name | Description
27
+
:--- | :----------
28
+
token | (Required) An authentication token to enable secure communication. The token will be automatically set by CNCjs.
29
+
host | (Optional) Specifies the host to connect to. Defaults to an empty string.
30
+
widget | (Optional) Specifies a folder name under 'src/widgets'. Defaults to 'ReactApp'.
31
+
32
+
### Examples
33
+
34
+
#### React App
35
+
36
+
There is a widget written with React, you can download it from the releases page: https://github.com/cncjs/cncjs-widget-boilerplate/releases
0 commit comments