Skip to content

Make renderCayos part of the cayo package that you import (remove the magic hook) #128

@matthew-ia

Description

@matthew-ia

Right now you can just use renderCayos in your entry files without importing which is 1) a little confusing (unless you think back to OG Javascript, where you can reference stuff from other files as long as they're imported in the HTML file before you try to use it—that's effectively what's happening here).

I'd rather something like:

// entry.js
import { renderCayos } from 'cayo';

renderCayos();

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or updates to an existing feature

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions