skip to Main Content

document.getElementById() can't find any matches on page – Html

i have this html code: import { currentSlide } from './Carusel'; <div className='app__mainpage'> <div className='app__mainpage_banners'> <img id='app__banners-banner' src={images.banner_first} alt='Банер' /> <img id='app__banners-banner' src={images.banner_two} alt='Банер' /> <img id='app__banners-banner' src={images.banner_three} alt='Банер' /> </div> <div className='app__mainpage_cigarettes'> <svg className='app__cigarettes-arrow active' fill='#6C6C6C' onClick={currentSlide(1)} ... BLA-BLA-BLA…

VIEW QUESTION

React: how to access url's parameters – Reactjs

How can I get the url params from a route? I got this code: function App() { return ( <div className="App"> <BrowserRouter> <Routes> <Route path="/table/:name/" element={<SortingTable/>}></Route> <Route path="" exact element={<BasicTable/>}></Route> </Routes> </BrowserRouter> </div> ); } I want to get the…

VIEW QUESTION
Back To Top
Search