Skip to content

Using without require #64

@Noitidart

Description

@Noitidart

Hi there,
I'm new to react (and require)
I'm trying to use this from a webpage, not npm.

So I did this:

<link rel="stylesheet" type="text/css" media="screen" href="resources/styles/react-tooltip.min.css" />
<script src=resources/scripts/react.min.js"></script>
<script src="resources/scripts/react-dom.min.js"></script>
<script src="resources/scripts/react-tooltip.js"></script>

Then I did this:

ReactDOM.render(React.createElement('span', {'data-tip':'rawr'}, 'hover me'), myEl);

However it does not work, on hover of this element nothing happens. Can you please advise.

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