Comments (4)
Sorry this project is still a work in progress and as a result the documentation is pretty light. But integrating react-bootstrap into an existing project should be very simple. I would expect you would need to do the following steps:
bower install react-bootstrap
bower install bootstrap
or just copy into your project the bootstrap css file, then link it from your HTML page.- Within your project code just
require
the component you need, for example using the alert with AMD you wouldvar Alert = require('react-bootstrap/amd/Alert');
- Then you can use the components as described in the readme, like any other React component.
Is there anything in particular you are having trouble with?
from react-bootstrap.
Hi, sorry for the confusion but actually I haven't finished doing the AMD export yet so currently the only way to use the components is by using the commonjs modules in node
(var Alert = require('react-bootstrap/cjs/Alert');
)and packaging up a browser bundle with something like browserify. I'll update this ticket when I've got the AMD export working.
from react-bootstrap.
Hey guys,
I guess the problem is that I include react.js in my bundled up vendor.js, which is not wrapped in cjs modules. So when I use react code i just have React
defined. I tried to simply plug your cjs modules in my src directory, but there are references to modules in the react code ( ReactPropTransferer
) and that obviously breaks because I don't have the react libs anywhere.
Is there a way to have these components without requiring those inner react modules?
Just want to add that I'm really excited to use this and you have done great work!
from react-bootstrap.
Hi,
I've just got AMD and globals exports working I think which should solve your problems. Info here: https://github.com/stevoland/react-bootstrap#getting-started Let me know how you get on.
from react-bootstrap.
Related Issues (20)
- null is not an object (evaluating 'ye.scrollHeight') HOT 1
- Feature Select component with search HOT 1
- Bug - Page Not Found for Tabs Doc Site HOT 3
- Dropdown should overlay the parent container HOT 1
- Alignment of button text in grid changes if href tag is set HOT 1
- Feature Request: Custom Anchor element for PageItem
- Button is not responsive inside the MODAL HOT 3
- defaultActiveKey and alwaysOpen not working properly at the same time HOT 1
- Error using components HOT 1
- NextJS <Link> giving error with react-bootstrap <Navbar.Link> HOT 1
- Docs - Components props tables are missing
- Tabs Component doesn't pass id attribute to underlying element HOT 1
- aria-label for DropdownButton HOT 2
- React Bootstrap doesn't let me set background color HOT 1
- Bug: OverlayTrigger doesn't hide after modal close. HOT 5
- Rendering children (Accordion) HOT 1
- Modal component stop working when closed HOT 6
- Keyboard input Tab + Shift escapes Modal's focus HOT 3
- ESC and Up/Down in Dropdown doesn't work when using the native Bootstrap HOT 2
- Suggest adding 'use clientโ for all the react-bootstrap component HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bootstrap.