Skip to content

Clearer API documentation? #15

@genyded

Description

@genyded

Syntax differences without concise API documentation (what the actual API is, not sample code using a portion of it) make it hard to figure out what is allowed. For example, the readme has this example:

mount(MainLayout, {
  content: () => (<WelcomeComponent name="Arunoda" />)
});

And the sample repo has this:

mount(AuthCheckCtx, {
   LayoutDefault, content: () => (<Simplest title="Template..."/>)
});

...one has the layout component inside the object with another auth component outside and the other just outside. So can the object have nested components or just one and either way what args can and can't be inside and/or the object optionally or required?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions