Skip to content

Errors when trying to use inside React JSX #11

@dmitriz

Description

@dmitriz

Steps to reproduce:

$ create-react-app my-app

then copy the React example inside the App.js file,
uncomment ReactDOM.render(<Button />, mountNode),
instead trying to put <Button /> directly inside the JSX.

Complained about undefined html, so I had added this line:

var html = require('bel')

The error changed to

assert.js:59Uncaught AssertionError: nanocomponent-adapters/react: component should be type function

in the console and the screen is empty.

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