Creating Widgets

Last modified: June 18, 2025

Introduction

Follow these guidelines when developing widgets and submitting them to the Marketplace:

  • The widget should be pluggable.
  • When writing variable and function names, use lower camel case. Example: mySecondVariable.
  • Add code comments.
  • Use descriptive variable and function names in both XML and JavaScript.
  • A function should contain at most 200 lines of code.
  • A function should only do one thing, and do it properly.
  • Use hooks and functional components over class components.
  • Create test pages for mobile when content is made for mobile platforms.