Created
February 20, 2023 20:45
-
-
Save nataliaconde/2bfa2fb4fbf76beef7e49e6c0413886a to your computer and use it in GitHub Desktop.
This file contains 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
// pages/add.js | |
export default function Add() { | |
const storeAddTask = useGlobalStore((state) => state.addTask); | |
const handleSubmit = () => { | |
storeAddTask({ | |
title: title, | |
description: description, | |
isDone: isDone, | |
}); | |
router.push("/"); | |
} | |
// ... | |
} | |
// Your final file should look like this: | |
// https://github.com/duplxey/back4app-containers-nextjs/blob/master/pages/add.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment