Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 569 Bytes

kernel.md

File metadata and controls

18 lines (11 loc) · 569 Bytes

Kernel

A kernel represents the app itself. It consists of modular pieces called subsystems, responsible for different functionalities of the app.

create(subsystems, initData, [config])

Creates an app kernel using a given array of subsystems, initial structure of the app and an optional configuration.

Usage

import { Kernel, defaultSubsystems } from '@skele/classic'
import navigationSubsystem from './customSubsystems/navigation'

const initData = { kind: 'app' }

Kernel.create([...defaultSubsystems, navigationSubsystem], initData)