From d0188cb4389a169ef28a5a759d8bc8d418cfd4a8 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab
+ import React, { useState } from 'react';
+
+ function Example() {
+ const [count, setCount] = useState(0);
+
+ return (
+ ...
+ );
+ }
+
+ Code syntax highlighting courtesy of highlight.js.
+
+ import React, { useState } from 'react';
+
+ function Example() {
+ const [count, setCount] = useState(0);
+
+ return (
+ <div>
+ <p>You clicked {count} times</p>
+ <button onClick={() => setCount(count + 1)}>
+ Click me
+ </button>
+ </div>
+ );
+ }
+
+ @@ -239,27 +275,6 @@
- import React, { useState } from 'react';
-
- function Example() {
- const [count, setCount] = useState(0);
-
- return (
- <div>
- <p>You clicked {count} times</p>
- <button onClick={() => setCount(count + 1)}>
- Click me
- </button>
- </div>
- );
- }
-
- Code syntax highlighting courtesy of highlight.js.
-This will fade out
+This will fade out
This element is unmatched
- +
function Example() {
New line!
@@ -49,34 +49,53 @@
Line Height & Letter Spacing
- import React, { useState } from 'react';
+
+
+
+ import React, { useState } from 'react';
- function Example() {
- const [count, setCount] = useState(0);
+ function Example() {
+ const [count, setCount] = useState(0);
- return (
- ...
- );
- }
-
-
-
-
- function Example() {
- const [count, setCount] = useState(0);
+ return (
+ ...
+ );
+ }
+
+
+
+
+ function Example() {
+ const [count, setCount] = useState(0);
- return (
- <div>
- <p>You clicked {count} times</p>
- <button onClick={() => setCount(count + 1)}>
- Click me
- </button>
- </div>
- );
- }
-
+ return (
+ <div>
+ <p>You clicked {count} times</p>
+ <button onClick={() => setCount(count + 1)}>
+ Click me
+ </button>
+ </div>
+ );
+ }
+
+
+ function Example() {
+ // A comment!
+ const [count, setCount] = useState(0);
+
+ return (
+ <div>
+ <p>You clicked {count} times</p>
+ <button onClick={() => setCount(count + 1)}>
+ Click me
+ </button>
+ </div>
+ );
+ }
+
+