by hkjgkjy · 10y ago · 0 comments
<Javascript>
[1,2,3].map((n) => (n+1))
</Javascript>
But the of course requires you to implement the page using react, which isn't what everyone is doing. <JavaScript src={`[1, 2, 3].map(n => n + 1)`} />