To build a webapp React component, see developers.mattermost.com.