Giter Site home page Giter Site logo

test-react-bootstrap-modal's Introduction

Hello there!

This project exists to help debug a Modal issue in `react-bootstrap'.

How this project was created

  • create a new react project at the command line
$ create-react-app test-react-bootstrap-modal
  • add react bootstrap
$ yarn add react-bootstrap bootstrap@3
  • import items from 'react-bootstrap' into App.js
import {
  PageHeader,
  Modal
} from 'react-bootstrap';
  • Use those items in App.js
<header className="App-header">
  <img src={logo} className="App-logo" alt="logo" />
  <h1 className="App-title">Welcome to React</h1>
</header>
<PageHeader>
  <span>React Bootstrap is wired up correctly</span>
</PageHeader>
<Modal show={true}>
  <p>This is a paragraph in the modal</p>
</Modal>

You can find a build of this project here.

To Debug Locally

  • clone the repo
$ git clone [email protected]:aljachimiak/test-react-bootstrap-modal.git
  • enter the folder
$ cd test-react-bootstrap-modal
  • fetch the dependancies
$ yarn install
  • start the project locally
$ yarn start

Shim insterted as fix

In App.js, adding a shim to the Modal will fix the issue:

import {
  PageHeader
  // , Modal
} from 'react-bootstrap';

import Modal from './modal-shim';

You can easily swap back to the broken state by commenting and uncommenting the appropriate lines:

import {
  PageHeader
  , Modal
} from 'react-bootstrap';

// import Modal from './modal-shim';

test-react-bootstrap-modal's People

Contributors

aljachimiak avatar

Stargazers

Anthony Maina avatar

Watchers

James Cloos avatar  avatar

test-react-bootstrap-modal's Issues

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.