Created
April 24, 2020 20:47
-
-
Save svsh227/8147e19bcc4dd220d0d495cd9227ccd1 to your computer and use it in GitHub Desktop.
Use the component in the app: in the App.js file, we will import our component and use it. See the below code:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import './App.css'; | |
import TypeAheadDropDown from './TypeAheadDropDown'; | |
import cities from './indianCities.js' | |
function App() { | |
return ( | |
<div className="App"> | |
<TypeAheadDropDown iteams={cities} /> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment