Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 502 Bytes

preact.md

File metadata and controls

24 lines (17 loc) · 502 Bytes

Preact

Though the addons modules that bundle with Microcosm are designed for React, we also maintain a microcosm-preact project for use with Preact.

Usage

Install microcosm-preact from npm.

npm install --save microcosm-preact

From there, it can be used exactly like the standard addons:

import Presenter from 'microcosm-preact/presenter'

class MyPresenter extends Presenter {
  view() {
    return <p>All set</p>
  }
}