Primeros pasos con Svelte

Primeros pasos 🚶🏻‍♂️

Hola Mundo en React 🌎

import React from 'react';export default () => {
let world = 'Mundo';
return <h1>Hola {world}!</h1>;
};

Hola Mundo en Svelte 🌎

<script>
let world = 'Mundo';
</script>
<h1>Hola {world}!</h1>

Diferencias entre React y Svelte 🧐

Primer componente con Svelte

<script>
let world = 'Mundo';
</script>
<h1>Hola {world}!</h1>

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store