Giter VIP home page Giter VIP logo

Comments (4)

pieterv avatar pieterv commented on April 27, 2024

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:

  1. bower install react-bootstrap
  2. bower install bootstrap or just copy into your project the bootstrap css file, then link it from your HTML page.
  3. Within your project code just require the component you need, for example using the alert with AMD you would var Alert = require('react-bootstrap/amd/Alert');
  4. 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.

stevoland avatar stevoland commented on April 27, 2024

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.

bradens avatar bradens commented on April 27, 2024

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.

stevoland avatar stevoland commented on April 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.