App.js 900 B

1234567891011121314151617181920212223242526272829303132
  1. import './App.css';
  2. let data=[
  3. {name:'Страна',prop1:'18/19',prop2:'19/20',prop3:'20/21',sum:'Сумма'},
  4. {name:'Англия',prop1:22.6,prop2:18.5,prop3:24.3,sum:92.3},
  5. {name:'Испания',prop1:19.5,prop2:18.9,prop3:19.5,sum:83.9},
  6. {name:'Италия',prop1:17.3,prop2:14.9,prop3:16.2,sum:66.9},
  7. {name:'Германия',prop1:15.2,prop2:18.7,prop3:15.2,sum:64.9},
  8. {name:'Франция',prop1:10.5,prop2:11.6,prop3:7.9,sum:48.0}
  9. ]
  10. let Block=({name="England", prop1='3333', prop2="44444",prop3='5555',sum="99999"})=>
  11. <tr>
  12. <td>{name}</td>
  13. <td>{prop1}</td>
  14. <td>{prop2}</td>
  15. <td>{prop3}</td>
  16. <td>{sum}</td>
  17. </tr>
  18. let App=()=>
  19. <div className="App">
  20. <table className='table'>
  21. <caption className='cap'>Таблица УЕФА</caption>
  22. {data.map(item=><Block {...item} />)}
  23. </table>
  24. </div>
  25. export default App;