Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import logo from './logo.svg';
  3. import './App.css';
  4.  
  5. import info from "./info"
  6.  
  7. class App extends Component {
  8. render() {
  9. return (
  10. <div>
  11. <ul>
  12. {info.tematicas.map((tematica) => {
  13. return (
  14. <li>
  15. {tematica.id} {tematica.nombre}
  16. <ul>
  17. {tematica.items.map((subitem) => {
  18. return (
  19. <li>
  20. {subitem.id} {subitem.nombre}
  21. </li>
  22. )
  23. })}
  24. </ul>
  25. </li>
  26. )
  27. })}
  28. </ul>
  29. </div>
  30. );
  31. }
  32. }
  33.  
  34. export default App;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement