How I learned to code
In Flash, you could write XML right in your code, which looked a lot like JSX does today:
var sales = (
<sales vendor="John">
<item type="peas" price="4" quantity="6"/>
<item type="carrot" price="3" quantity="10"/>
<item type="chips" price="5" quantity="3"/>
</sales>
);The point of nesting functions like this is to make it clear that second() and third() aren't used anywhere else:
export function first() {
const bla = 2;
return second(3, bla);
}
const second = (a, bla) => {
const foobar = a + bla;
return third(3, foobar);
};And here's the kind of class list Tailwind's home page shows:
<div class="bg-slate-100 rounded-xl p-8 dark:bg-slate-800">
<!-- ... -->
</div>