1.0.5 • Published 1 year ago

ka-productpage v1.0.5

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Getting Started with this package

code example for use

import { useState,useEffect } from 'react';
//import the component
import {KaProductPage} from 'ka-productpage';
function App() {
   const [products, setproducts] = useState([])
   const getProdData = (data) => {
      //get prod id and name for navigating to product Detail page.
      console.log('data',data)
   }
  return (
    <div className="App">
      {/* use the component and pass the product array as props */}
      <KaProductPage products={products} prodData = {getProdData}/>
    </div>
  );
}

export default App;