aboutsummaryrefslogtreecommitdiff
path: root/demo.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-02-11 18:37:14 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-02-11 18:37:14 +0100
commit84b2fb42c6bbdbe7ca596f1cfc3c42d9a8a78968 (patch)
treea9c71a9c9924f748e85c85027646f8b1a74d8a52 /demo.html
parentea295796eab7661c1e2050d3442e53a44d02ad88 (diff)
downloadfosdem-2021-minimalism-presentation-84b2fb42c6bbdbe7ca596f1cfc3c42d9a8a78968.tar
fosdem-2021-minimalism-presentation-84b2fb42c6bbdbe7ca596f1cfc3c42d9a8a78968.tar.gz
demo and auto-animate example updates
Diffstat (limited to 'demo.html')
-rw-r--r--demo.html30
1 files changed, 15 insertions, 15 deletions
diff --git a/demo.html b/demo.html
index cf05e88..c3644e5 100644
--- a/demo.html
+++ b/demo.html
@@ -242,22 +242,22 @@
<section>
<h2>Pretty Code</h2>
<pre><code class="hljs" data-trim data-line-numbers="4|9|4,8-11">
-import React, { useState } from 'react';
-
-function Example() {
- const [count, setCount] = useState(0);
-
- return (
- &lt;div&gt;
- &lt;p&gt;You clicked {count} times&lt;/p&gt;
- &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
- Click me
- &lt;/button&gt;
- &lt;/div&gt;
- );
-}
+ import React, { useState } from 'react';
+
+ function Example() {
+ const [count, setCount] = useState(0);
+
+ return (
+ &lt;div&gt;
+ &lt;p&gt;You clicked {count} times&lt;/p&gt;
+ &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
+ Click me
+ &lt;/button&gt;
+ &lt;/div&gt;
+ );
+ }
</code></pre>
- <p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
+ <p>Code syntax highlighting courtesy of <a href="https://highlightjs.org/usage/">highlight.js</a>.</p>
</section>
<section>