Update 'src/App.js'

This commit is contained in:
nochill 2023-05-14 16:19:57 +07:00
parent aa32b19c1c
commit 909951eabd

View File

@ -17,7 +17,7 @@ const gradeOptions = [
const App = () => { const App = () => {
const [data, setData] = useState(output); const [data, setData] = useState(output);
const [preview, setPreview] = useState(undefined); const [preview, setPreview] = useState(null);
const handlePreview = () => { const handlePreview = () => {
setPreview({ ...data }); setPreview({ ...data });