Skip to content

Instantly share code, notes, and snippets.

@mugan86
Last active November 8, 2019 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mugan86/becb795c8e24d9418c33857ab7983033 to your computer and use it in GitHub Desktop.
Save mugan86/becb795c8e24d9418c33857ab7983033 to your computer and use it in GitHub Desktop.
Fichero de inicio probando el componente React que hemos usado como librería
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import { Hello } from 'medium-react-lib';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<Hello name="Anartz" />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment