Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

how to import packages from npm #168

Description

@pjebs

I am trying to use Sortable from within React.

The instructions state:

npm install sortablejs --save
=====
and then:

<ul id="items">
	<li>item 1</li>
	<li>item 2</li>
	<li>item 3</li>
</ul>

var el = document.getElementById('items');
var sortable = Sortable.create(el);

I can't seem to load the npm library.
Since it's chrome based, it doesn't understand require( )

Is there any instructions for how to "reactify" non-react libraries from within this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions