0.0.2 • Published 5 years ago

@headup/headup v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Headup - Recording Data Layer for Next

Usage

import { createHeadupDataLayer } from "headup";

const {
    createContentHook,
    createSectionHook,
    HeadupProvider,
} = createHeadupDataLayer<{ language: string; path: string }>({
    mode: "record",
    async recordContent(content) {
        // Save content
    },
    async playbackContent(meta) {
        // Read the data and return it
        return {};
    },
});

More docs coming!

0.0.2

5 years ago

0.0.1

5 years ago