Code Structure


Your exported code will look like the below

Here is an overview of the folders:

  • components: All components used in the dashboard. Low level components can be found in the components/ui folder

  • containers: Contains the contents of each of the dashboard pages

  • css: Global css which is imported into index.js

  • hooks: React hooks for window size and outside click functionality. Hooks to interact with the Qlik engine are loaded from the @motor-js/engine package

  • layouts: Wrapper for dashboard content, header and footer

  • pages: Contains each page of your dashboard. Loads items from thecontainers folder

  • settings: Config for app settings and Qlik connection, loaded into the Motor component

  • theme: Theme object

  • util: Some useful utilities


Scripts are unchanged from default create-react-app setup

yarn start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode. See the section about running tests for more information.

yarn build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimises the build for the best performance.

The build is minified and the filenames include the hashes. Your app is ready to be deployed!

See the section about deployment for more information.

Last updated