diff --git a/src/App.js b/src/App.js index 2ecd294..a54259a 100644 --- a/src/App.js +++ b/src/App.js @@ -1,10 +1,10 @@ import React, { Component } from 'react'; import { Thumbnail, Navbar, ProgressBar, Nav, NavItem, NavDropdown, MenuItem, Image, Grid, Col, Row } from 'react-bootstrap'; import { Form, FormGroup, ControlLabel, FormControl, Button, BootstrapTable, TableHeaderColumn } from 'react-bootstrap'; -import User from './components/User'; -import UserList from './components/UserList'; -import Services from './components/Services'; -import Cargando from './components/Cargando'; +import User from './Components/User'; +import UserList from './Components/UserList'; +import Services from './Components/Services'; +import Cargando from './Components/Cargando'; import './App.css'; diff --git a/src/Components/Frecuentes.js b/src/Components/Frecuentes.js new file mode 100644 index 0000000..4b9e703 --- /dev/null +++ b/src/Components/Frecuentes.js @@ -0,0 +1 @@ +import React, { Component } from 'react'; \ No newline at end of file diff --git a/src/Data/frecuentes.json b/src/Data/frecuentes.json new file mode 100644 index 0000000..fe4dfd4 --- /dev/null +++ b/src/Data/frecuentes.json @@ -0,0 +1,22 @@ +{ + "data": [ + { + "id": 1, + "name": "Michael Carvajal", + "rut": "16989654-7" + }, + + { + "id": 2, + "name": "Maria Solaris", + "rut": "16989654-7", + + }, + + { + "id": 3, + "name": "francisco Zuñiga", + "rut": "11989633-7", + } + ] +} \ No newline at end of file diff --git a/src/Frecuentes.jsx b/src/Frecuentes.jsx new file mode 100644 index 0000000..ef2b225 --- /dev/null +++ b/src/Frecuentes.jsx @@ -0,0 +1,16 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; + +import { Data } from '../src/Data/frecuentes.json'; + +const frecuentes = ({ name, rut }) => + Data.map((data => +
+

{data.name}

+

{data.rut}

+
+ )) +//const App = ({ message }) =>
{ message }
; + +//ReactDOM.render(, document.getElementById('app')); +ReactDOM.render(, document.getElementById('app')); \ No newline at end of file