Skip to content

Commit

Permalink
Replace deinitialize with uninitialize (#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey authored Dec 6, 2024
1 parent b16b52d commit d8879ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/integrate/plugins/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The sample plugin implements this simply in {{< newtabref href="https://github.c
Read more about the server-side of plugins [here]({{< ref "/integrate/plugins/components/server" >}}).

### Web/desktop app
The web app component of a plugin is written in JavaScript with {{< newtabref href="https://react.dev/" title="React" >}} and {{< newtabref href="https://redux.js.org/" title="Redux" >}}. The plugin's bundled JavaScript is included on the page and runs alongside the web app code as a [PluginClass]({{< ref "/integrate/reference/webapp/webapp-reference#pluginclass" >}}) that has initialize and deinitialize methods available for implementation. The initialize function is passed through the [registry]({{< ref "/integrate/reference/webapp/webapp-reference#registry" >}}) which allows the plugin to register React components, actions and hooks to modify and interact with the Mattermost web app.
The web app component of a plugin is written in JavaScript with {{< newtabref href="https://react.dev/" title="React" >}} and {{< newtabref href="https://redux.js.org/" title="Redux" >}}. The plugin's bundled JavaScript is included on the page and runs alongside the web app code as a [PluginClass]({{< ref "/integrate/reference/webapp/webapp-reference#pluginclass" >}}) that has initialize and uninitialize methods available for implementation. The initialize function is passed through the [registry]({{< ref "/integrate/reference/webapp/webapp-reference#registry" >}}) which allows the plugin to register React components, actions and hooks to modify and interact with the Mattermost web app.

The sample plugin has a {{< newtabref href="https://github.com/mattermost/mattermost-plugin-starter-template/blob/master/webapp/src/index.tsx" title="shell of an implemented PluginClass" >}}, while the demo plugin {{< newtabref href="https://github.com/mattermost/mattermost-plugin-demo/blob/master/webapp/src/plugin.jsx" title="contains a more complete example" >}}.

Expand Down

0 comments on commit d8879ef

Please sign in to comment.