Fork me on GitHub
#reagent
<
2017-07-11
>
mattgeb01:07:34

Heya. Trying to import a React component, following this guide: ( http://blob.tomerweller.com/reagent-import-react-components-from-npm ). Got it to work (yay!), but I'm having a little trouble figuring out how to import a different React component from NPM. Trying to import this: https://github.com/rico345100/react-multimedia-capture Soo, it takes a LOT more arguments, and I'm not totally sure how to translate them (should the parts in {curly braces} be Keywords?). What I'd like to do is import the example here ( https://github.com/rico345100/react-multimedia-capture-example/blob/master/src/VideoExample.js ) and then just be able to call it. Buuut, I'm not sure how to do that with a component that's just defined in a local .js file instead of installed with NPM.

mattgeb23:07:21

Got that react-webcam working in reagent. It's here - hope someone finds it useful! https://github.com/mattalhonte/reagent-webcam