Skip to content

Instantly share code, notes, and snippets.

@irskep
Created June 14, 2018 02:20
Show Gist options
  • Save irskep/5c76a3559d272efa4d3c87983f2e2de2 to your computer and use it in GitHub Desktop.
Save irskep/5c76a3559d272efa4d3c87983f2e2de2 to your computer and use it in GitHub Desktop.
Basic requirements to get literallycanvas working
// package.json
{
"name": "frontend",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"create-react-class": "^15.6.3",
"literallycanvas": "^0.5.2",
"react": "^16.0.0",
"react-create-class": "^1.0.0",
"react-dom": "^16.4.1",
"react-dom-factories": "^1.0.2"
}
}
// index.js
import 'create-react-class';
import 'react';
import 'react-dom';
import lc from 'literallycanvas';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment