I had a problem installing this plugin https://github.com/troybetz/react-youtube and use it in the js.cjsx response component. So I go step by step with this tutorial http://blog.arkency.com/2015/04/bring-commonjs-to-your-asset-pipeline/ But now, how can I enable and use the response-youtube component in the file js.cjsx? I run npm initand npm install react-youtube --savebefore. My application.js.coffee
npm init
npm install react-youtube --save
#= require jquery #= require jquery_ujs #= require turbolinks #= require jquery #= require bootstrap-sprockets #= require alert #= require react #= require react_ujs #= require components #= require_tree . React = require('react')
How to do it?
No one has answered this question yet.
See related questions:
Source: https://habr.com/ru/post/1626551/More articles:How to include a file that defines constants in a class (and its scope) - ooppopstate - double click on the back button to actually return - javascriptForce Apache updates log file path without restarting in WAMP - loggingIs it always safe to create a stream and infer the "this" pointer from the constructor? - c ++Exception sending event input when calling startActivity - performanceHow can I match my own generic type? - genericsivy: findrevision cannot resolve a custom template in Artifactory, however ivy: retrieves it - artifactoryThe maximum number of occurrences of a character appears in an array of strings - c #Mandrill SMTP gives EOFError: end of file reaches errors - ruby-on-rails-4https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1626556/how-to-generate-a-room-id-and-force-two-users-to-join-that-room&usg=ALkJrhjVU7YZtYU4W9ZsCKY2uj-GS6cnUAAll Articles