Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert json data in React js?

I have a following list of data's. I need to insert my template. How to achieve this one with React js.

[
 {
  product:"one",
  quantiy:2
 },
 {
  product:"two",
  quantiy:4
 },
 {
  product:"three",
  quantiy:3
 }
]
like image 257
Sathya Avatar asked Nov 29 '25 14:11

Sathya


1 Answers

Here is a working jsbin example http://jsbin.com/ziqelujevi/2/edit?html,js,output

Update: Display all the items http://jsbin.com/cibuhogudu/1/edit?html,js,console,output

like image 94
andrei Avatar answered Dec 01 '25 02:12

andrei



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!