diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-02-11 18:37:14 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-02-11 18:37:14 +0100 |
commit | 84b2fb42c6bbdbe7ca596f1cfc3c42d9a8a78968 (patch) | |
tree | a9c71a9c9924f748e85c85027646f8b1a74d8a52 /demo.html | |
parent | ea295796eab7661c1e2050d3442e53a44d02ad88 (diff) | |
download | fosdem-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.html | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -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 ( - <div> - <p>You clicked {count} times</p> - <button onClick={() => setCount(count + 1)}> - Click me - </button> - </div> - ); -} + 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></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> |