Skip to content Skip to sidebar Skip to footer

React: Suggestion Is Not Showing In The Drop-down

I'm making use of examples on https://ericgio.github.io/react-bootstrap-typeahead/ to create an autocomplete app, however, i'm not able to see the drop-down like the one which is

Solution 1:

You must include the provided CSS file in your project:

// Import as a module in your JSimport'react-bootstrap-typeahead/css/Typeahead.css';

or

<!-- Link as a stylesheet in your HTML --><linkrel="stylesheet"href="https://unpkg.com/react-bootstrap-typeahead/css/Typeahead.css">

Also you have to import it like,

import {Typeahead} from'react-bootstrap-typeahead'; // ES2015

But you have imported Typeahead from another module.

Post a Comment for "React: Suggestion Is Not Showing In The Drop-down"