Skip to content

Instantly share code, notes, and snippets.

View ilyeshammadi's full-sized avatar
🚀

Ilyes Hammadi ⵉⵍⵖⴻⵙ ilyeshammadi

🚀
  • Tiqets
  • Amsterdam, Netherlands
View GitHub Profile
@ilyeshammadi
ilyeshammadi / custom-capslock.json
Last active March 14, 2024 10:39
Karabiner Mappings
{
"title": "Change caps_lock to Esc and Control",
"rules": [
{
"description": "Post Esc if Caps is tapped, Control if held.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
const Form = () => {
return (
<form>
<input type="email" onChange={(e) => console.log(e.target.value)}/>
<input type="password"/>
<button type="submit">Submit</button>
</form>
)
}
const Form = () => {
return (
<form>
<input type="email"/>
<input type="password"/>
<button type="submit">Submit</button>
</form>
)
}
class Login extends React.Component{
render() {
return (
<div>
<h1>Login</h1>
</div>
)
}
}
<script type="text/babel">
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('app')
);
</script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@latest/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
// <div>
// <p>Hello World</p>
// </div>
React.createElement(
"div",
null,
React.createElement(
"p",
null,
// <div>
// <p>Hello World</p>
// </div>
const helloWorld = (<div>
<p>Hello World</p>
</div>)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Hello World</title>
<script src="https://unpkg.com/react@latest/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<title>React is Awesome</title>
<script src="https://unpkg.com/react@latest/dist/react.js"></script>
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.js"></script>
</head>
<body>
<div id="app"></div>
</body>