I created a 'create react app' with typescript and I now want to import and use eosjs-ecc
Can I just import it with yarn add eosjs-ecc
and then do
import ecc from 'eosjs-ecc'
or do I need to clone the repo then build a browser version with yarn build_browser
(notice the browser section at the bottom of the readme eosjs-ecc)
then copy the built file eosjs-ecc.js into the project and then import that built file with...
import ecc from './scripts/eosjs-ecc.js'
it feels wrong to have to add the js file when all the other file are tsx files. I notice there is no type definitions either.