Great article. Just some feedback, there are some typos with your code and your descriptions. One example is:
const [allPosts, setAllPosts] = useState([]);
After that, we'll create a new function called savePost:
const savePost = () => {
const id = Date.now();
setAllPost([...allPost, {title, content, id}]);
console.log(allPost);
};
Great article. Just some feedback, there are some typos with your code and your descriptions. One example is:
Thanks, I've fixed it.