Advertisement

TrimwebsolutionsTrimwebsolutions

Problem and Solutions

How to send props using render in reachrouterdomv6 ?

By M.K. Verma · 2 May 2022

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>