webcomponents.dev
webcomponents.dev copied to clipboard
Consistency in the "All the ways..." code samples
I was noticing there are some inconsistencies with how code is written in some of the benchmark samples.
For example, in the React with Hooks sample, there is no formal intermediate function created for increment or decrement, but there is in the Svelte example.
// React
<button onClick={() => setCount(count - 1)}>-</button>
// Svelte
function inc() {
count++;
}
<button on:click={inc}>
I don't think this will make a big difference when minimized and brotli compressed, but when doing a comparison that is supposed to be apples to apples, it would be good to follow similar coding practices.
I like consistency otherwise it's unfair. @m4dz please, let's make a full review. I will help.
Thanks @oravecz
I take it, thanks!