Failure Meteor / Reaction / Reaction-Bootstrap

I want to use Meteor with React and bootstrap reaction. I found a lot of “tags” on how to set, but I think they are out of date.

// packages/client-deps/package.js
  Package.describe({
  name: 'client-deps'
});

Npm.depends({
  'react-bootstrap': '0.28.1', 
  'react' : '0.14.3' 
});

Package.onUse(function(api) {
  api.use(['cosmos:browserify@0.3.0']); 

  api.addFiles(['app.browserify.js']); 
  api.export(['ReactBootstrap', 'React']); 
});

and

React = require('react/addons');
ReactBootstrap = require('react-bootstrap');

After that I installed meteor add reactrouter:react-router... But nothing is displayed (it works without the contents of the client files) / there is no error message.

+4
source share
1 answer

, , 2017 . Meteor, , : https://atmospherejs.com/twbs/bootstrap Bootstrap.

meteor add twbs:bootstrap, , Bootstrap Meteor .

0

Source: https://habr.com/ru/post/1618071/


All Articles