Modules

The main building block of Cerebral is the Module. It helps you organize your application and it is an extension point to share logic between apps. In your project open the file src/index.js. Add the following content:

import App from 'cerebral'

const app = App({
  state: {
    title: 'My Project'
  }
})

That is it! Cerebral is now wired up and we can start building the application. But first, lets hook on the debugger.