Skip to content

Instantly share code, notes, and snippets.

🚀

Ilyes Hammadi ilyeshammadi

🚀
Block or report user

Report or block ilyeshammadi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View form.js
const Form = () => {
return (
<form>
<input type="email" onChange={(e) => console.log(e.target.value)}/>
<input type="password"/>
<button type="submit">Submit</button>
</form>
)
}
View login.js
const Form = () => {
return (
<form>
<input type="email"/>
<input type="password"/>
<button type="submit">Submit</button>
</form>
)
}
View login.js
class Login extends React.Component{
render() {
return (
<div>
<h1>Login</h1>
</div>
)
}
}
View hello.html
<script type="text/babel">
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('app')
);
</script>
View index.html
<!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>
View gist:2ea94790ccdb0b5ff9725d4ea6a3b6d9
<!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>
View gist:3b5a48454b8b89fd5b488918f72e4479
// <div>
// <p>Hello World</p>
// </div>
const helloWorld = (<div>
<p>Hello World</p>
</div>)
View gist:5d042eb63979ab63555a536639a2742f
// <div>
// <p>Hello World</p>
// </div>
React.createElement(
"div",
null,
React.createElement(
"p",
null,
View index.html
<!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>
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>React is Awesome</title>
</head>
<body>
<div id="app"></div>
</body>
</html>
You can’t perform that action at this time.