Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

82
Views
'Glyphicon' is not exported from 'react-bootstrap'

When I try to import Glyphicon from 'react-bootstrap' I get below import error. 'Attempted import error: 'Glyphicon' is not exported from 'react-bootstrap'. I looked through a lot of resources to diagnose this error. Every method used ends in failure and further the above error appears. I still wonder what is causing this error.

import React, { Component } from "react";
import "./App.css";
import {
  FormGroup,
  FormControl,
  InputGroup,
  Glyphicon,
} from "react-bootstrap";

class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      query: "",
    };
  }

  search() {
    console.log("this.state", this.state);
  }
  
  render() {
    return (
      <div className="App">
        <div className="App-title">Music search</div>
        <FormGroup>
          <InputGroup>
            <FormControl
              type="text"
              placeholder="Search for an artist"
              query={this.state.query}
              onChange={(event) => {
                this.setState({ query: event.target.value });
              }}
              onKeyPress={(event) => {
                if (event.key === "Enter") {
                  this.search();
                }
              }}
            />
          </InputGroup>
          <InputGroup.Addon>
            <Glyphicon glyph="search" />
          </InputGroup.Addon>
        </FormGroup>
        <div className="Profile">
          <div>Artist Picture</div>
          <div>Artist name</div>
        </div>
        <div className="Gallery"></div>
      </div>
    );
  }
}

export default App;


about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!