[Solved] Why react-bootstrap isn't working properly? - help

文章推薦指數: 80 %
投票人數:10人

Tried to include react-bootstrap like this: import React from 'react' import { Button } from 'react-bootstrap' const MainLayout ... [Solved]Whyreact-bootstrapisn'tworkingproperly? help yanis May3,2016,4:57pm #1 Triedtoincludereact-bootstraplikethis: importReactfrom'react' import{ Button }from'react-bootstrap' constMainLayout=({content})=>( Hello {content()} ) exportdefaultMainLayout Buthavejustordinarybutton. Triedalsolikethis: importButtonfrom'react-bootstrap/lib/Button' Anyadvicehowtocatchthisbug? yanis May3,2016,7:26pm #2 MaybeMeteordoesn’tsupportitnatively? Maybeitconflictswithsmth? packages: meteor-base#PackageseveryMeteorappneedstohave mobile-experience#PackagesforagreatmobileUX mongo#ThedatabaseMeteorsupportsrightnow blaze-html-templates#Compile.htmlfilesintoMeteorBlazeviews reactive-var#Reactivevariablefortracker jquery#Helpfulclient-sidelibrary tracker#Meteor'sclient-sidereactiveprogramminglibrary standard-minifier-css#CSSminifierrunforproductionmode standard-minifier-js#JSminifierrunforproductionmode es5-shim#ECMAScript5compatibilityforolderbrowsers. ecmascript#EnableECMAScript2015+syntaxinappcode kadira:flow-router meteortoys:allthings audit-argument-checks accounts-password Ihavecomponentsbutwithoutstyling ButIhave: idmontie May3,2016,7:28pm #3 DidyouaddtheBootstrapstylesheettoyourapp? 1Like yanis May3,2016,7:34pm #4 @idmontieUpsIdidn’tknowIshould.Sorryandthankyouverymuch



請為這篇文章評分?