Skip to content

Instantly share code, notes, and snippets.

View abdelfattah-atef94's full-sized avatar

Abdelfattah atef abdelfattah-atef94

  • Dubai
View GitHub Profile
import React, { useState } from "react";
export default function App() {
const [inputValue, setInputValue] = useState("");
const handleInputChange = (e) => {
setInputValue(e.target.value)
}
const handleSubmitButton = () => {
alert(inputValue);
};
import React, { useState } from "react";
export default function App() {
const [inputValue, setInputValue] = useState("");
const handleSubmitButton = () => {
alert(inputValue);
};
return (
<div className="App">
<input value={inputValue} onChange={e => setInputValue(e.target.value)} />
import React, { useState } from "react";
export default function App() {
const [inputValue, setInputValue] = useState("");
const handleSubmitButton = () => {
alert(inputValue);
};
return (
<div className="App">
<input value={inputValue} onChange={e => setInputValue(e.target.value)} />
import React, { useState } from "react";
export default function App() {
const [inputValue, setInputValue] = useState("");
return (
<div className="App">
<input value={inputValue} onChange={e => setInputValue(e.target.value)} />
</div>
);
}
import React, { useRef } from "react";
export default function App() {
const inputRef = useRef(null);
const handleSubmitButton = () => {
alert(inputRef.current.value);
};
return (
<div className="App">
<input type="text" ref={inputRef} />
import React, { useRef } from "react";
export default function App() {
const inputRef = useRef(null);
const handleSubmitButton = () => {
alert(inputRef.current.value);
};
return (
<div className="App">
<input type="text" ref={inputRef} />
import React, { useRef } from "react";
export default function App() {
const inputRef = useRef(null);
const handleSubmitButton = () => {
alert(inputRef.current.value);
};
return (
<div className="App">
<input type="text" ref={inputRef} />
import React, { useState } from "react";
export default function App() {
const [inputValue, setInputValue] = useState("");
return (
<div className="App">
<input type="text" value={inputValue} onChange={e => setInputValue(e.target.value)} />
</div>
);
}
import React, { useState } from "react";
export default function App() {
const [inputValue, setInputValue] = useState("");
return (
<div className="App">
<input value={inputValue} onChange={e => setInputValue(e.target.value)} />
</div>
);
}
{
"name": "Users App",
"short_name": "Users",
"description": "PWA users app",
"theme_color": "#2196f3",
"background_color": "#2196f3",
"display": "standalone",
"start_url": "/build/index.html",
"icons": [
{