alexa

How to send props using render in reachrouterdomv6 ?

How to send props using render in reachrouterdomv6 ?
 <Routes>
            <Route exact path="/" element={<ProductList
            {...this.props}
            products={this.state.products}
            currentCategory={this.state.currentCategory}
            info={productInfo}
            addToCart={this.addToCart}
          />}></Route>
            <Route exact path="/cart" element={<CartList />} />
            <Route path="*"element={<NotFound />} />
          </Routes>

207 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online

Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry