toorshia/justgage

Not able to use justgage in react component

manjindersarkaria opened this issue · 2 comments

Hi i am trying to use the justgage in react component and i am importing justgage and raphael in that component and even then i am getting an error that JustGage is not defined, getRandom is not defined.
import React,{Component}from 'react';
import '../../node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../../node_modules/jquery-ui-stable/jquery-ui.min.css';
import '../../node_modules/justgage/raphael-2.1.4.min.js';
import '../../node_modules/justgage/justgage.js';

Same problem :(

Now justgague has been modularized so you can import it like others modules

import 'justgage'