You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i'm following React course.There is an error that i have been for over an hour.Can anyone please solve this..
I want to extend Component of react class to create a search bar but can't do it:
i'm following React course.There is an error that i have been for over an hour.Can anyone please solve this..
I want to extend Component of react class to create a search bar but can't do it:
Code for search_bar:
`import React, {'Component'} from 'react';
const SearchBar extends Component {
render() {
return <input onChange={(event) => console.log(event.target.value)} />;
}
}
export default SearchBar;
`
Code of index:
`import React from 'react';
import ReactDOM from 'react-dom';
import SearchBar from './components/search_bar';
const API_KEY='AIzaSyCoeaT4zM-lPerhzktn9GKQHEQdQXWFIdE';
//create a new component
const App=() => {
return (
Please solve this as soon as possivle :p
The text was updated successfully, but these errors were encountered: