This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Link } from 'react-router-dom'; | |
| import './styles/Badges.css'; | |
| import confLogo from '../images/badge-header.svg'; | |
| import BadgesList from '../components/BadgesList'; | |
| import api from '../api'; | |
| class Badges extends React.Component { | |
| state = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://reacttraining.com/react-router/web/guides/quick-start | |
| npm install react-router-dom | |
| import React from "react"; | |
| import { | |
| BrowserRouter as Router, | |
| Switch, | |
| Route, | |
| Link | |
| } from "react-router-dom"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Para usar leaflet en proyectos de React | |
| ======================================= | |
| + npm install --save leaflet | |
| + npm install --save react-leaflet | |
| ```javascript | |
| import React from 'react'; | |
| import { Map, TileLayer } from 'react-leaflet'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| incluir Bootstrap en React | |
| Puedes incluir el framework de bootstrap en el poderoso react siguiendo estos pasos: | |
| 1. instalar bootstrap | |
| Para instalar bootstrap, ve a la terminal, a la carpeta de tu proyecto y ejecuta el comando: | |
| npm install bootstrap | |
| 2. Importa las librerias de bootstrap | |
| En node_modules se agregarán los archivos de bootstrap. Ve al archivo index.js de tu proyecto y justo al principio pones el siguiente código para importar la librería |
NewerOlder