---
title: "Comment by John foden on \"Simple Validation Form In React Using UseHooks And LocalStorage With Some Tailwind🥳🎉\" | Hashnode"
description: "thank you, but why you putting localstorage inside useState?"
url: "https://hashnode.com/posts/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind/62f15628c1e76d621b3f82a8/comment/62f27cfba56ed86b41c674cc"
---

[Discussion](https://hashnode.com/posts/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind/62f15628c1e76d621b3f82a8)

Comment [Simple Validation Form In React Using UseHooks And LocalStorage With Some Tailwind🥳🎉](https://hashnode.com/posts/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind/62f15628c1e76d621b3f82a8)

[John foden](https://hashnode.com/@foden)

[Aug 9, 2022](https://hashnode.com/posts/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind/62f15628c1e76d621b3f82a8/comment/62f27cfba56ed86b41c674cc)

thank you, but why you putting localstorage inside useState?

[mohamed](https://hashnode.com/@tefa)

[Aug 10, 2022](https://hashnode.com/posts/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind/62f15628c1e76d621b3f82a8/comment/62f27cfba56ed86b41c674cc#reply-62f3cb8831be20833796d57d)

Hi John thanks for visiting my blog i appreciate that In my code i needed to keep my localstorage data as an initial state to get it back if there is item before
