Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question - trying to make a MyInput component similar to Input #523

Closed
aktxyz opened this issue Apr 16, 2015 · 2 comments
Closed

Question - trying to make a MyInput component similar to Input #523

aktxyz opened this issue Apr 16, 2015 · 2 comments
Labels

Comments

@aktxyz
Copy link

aktxyz commented Apr 16, 2015

I have taken the source for the Input component, and only changed the import statements to require as shown below. The rest of the file matches the existing Input component.

The problem is the FormGroup component does not exist, and looking at the source, FromGroup is defined differently from the other components (class FormGroup extends React.Component ...).

Any ideas how to get around this?

var React = require('react');

var classNames = require('classNames');
var Bootstrap = require('react-bootstrap');
var Button = Bootstrap.Button;
var FormGroup = Bootstrap.FormGroup;

const MyInput = 
    React.createClass({
@mtscout6
Copy link
Member

We did not expose that component to the public api. The discussion for which is in #342. What are you trying to change about Input to necessitate a direct copy?

@dozoisch
Copy link
Member

@aktxyz I'll close that for the time being. Feel free to reopen!

aryad14 pushed a commit to aryad14/react-bootstrap that referenced this issue Oct 11, 2023
…rap#523)

* chore(package): update prettier to version 1.17.0

* chore(package): update lockfile package-lock.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants