Created
August 13, 2025 09:58
-
-
Save tomaswrobel/2406770e1bdae7fac1fefe78f00bfa67 to your computer and use it in GitHub Desktop.
Gist created by https://playgist.dev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| box-sizing: border-box; | |
| } | |
| html { | |
| font-family: sans-serif; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Here's an example of a React Component. However, | |
| * you can use another framework, or just import | |
| * libraries like jQuery, lodash, d3, etc. | |
| */ | |
| import * as ReactDOM from "react-dom"; | |
| import * as React from "react"; | |
| import "./index.css"; | |
| function Counter() { | |
| const [count, setCount] = React.useState(0); | |
| return ( | |
| <div> | |
| <p>Count: {count}</p> | |
| <button onClick={() => setCount(count + 1)}>Increment</button> | |
| </div> | |
| ); | |
| } | |
| ReactDOM.render( | |
| <Counter />, | |
| document.body | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment