how to complete this code, use Es6 syntax, can"t use jquery
I paste the code down
const product = [{
pname: "",
price: 188,
desc: ","
},
{
pname: "",
price: 199,
desc: ","
},
{
pname: "",
price: 288,
desc: ","
}
]
function parseDom(domStr) {
// domreturn
}
function app(dom) {
// domappbodyappbody
}
class Component {
constructor(data) {
this.data = data
}
render() {
//this.data
}
}
// apprender,
app(str)