---
title: "Discussion on \"Simple Validation Form In React Using UseHooks And LocalStorage With Some Tailwind🥳🎉\" | Hashnode"
description: "Discussion on \"Simple Validation Form In React Using UseHooks And LocalStorage With Some Tailwind🥳🎉\". how to use react hooks to create validation form with tailwindCss \nand save it in localstorage"
url: "https://hashnode.com/posts/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind/62f15628c1e76d621b3f82a8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Simple Validation Form In React Using UseHooks And LocalStorage With Some Tailwind🥳🎉](https://i-learn.hashnode.dev/simple-validation-form-in-react-using-usehooks-and-localstorage-with-some-tailwind?utm_source=hashnode&utm_medium=feed)

how to use react hooks to create validation form with tailwindCss and save it in localstorage

Aug 8, 2022 · 5 min read · i-learn.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#usestate](https://hashnode.com/tag/usestate)
-   [#localstorage](https://hashnode.com/tag/localstorage)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#validation](https://hashnode.com/tag/validation)

## Written by

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

@tefa · Egypt

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

Never Say Never 👌✌️💪

I am a developer from Egypt, I made career shift from Accounting section, the reason why this careershift is i find programming beatiful adventure to try it , Iam enjoying with the mindset challenges.

## Responses 2

Markdown supported · ⌘↵ to post

[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

[Hisham Mahmoud](https://hashnode.com/@hisham152)

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

thanks alot
