Trying out new custom code blocks
Posted on: November 02, 2021
Here's an example of my new custom code blocks:
jsx
// here's a button in React!<buttononClick={() => {alert("Hello MDX!");}}>test</button>
Wow! Such code snippets! Let's see another, with line highlighting:
js
// fizzbuzz in JSfor (let i = 1; i <= 100; i++) {let out = "";if (i % 3 === 0) out += "Fizz";if (i % 5 === 0) out += "Buzz";console.log(out || i);}