---
title: "Discussion on \"REACT :  \"custom validator\" for String Props\" | Hashnode"
description: "Discussion on \"REACT :  \"custom validator\" for String Props\". Prop-types is a library that allows to introduce some validation on the props we pass to React components. \nIt works  only in development mode , writing warning/errors in the console when a prop passed to a component is not valid, allowing us to disc..."
url: "https://hashnode.com/posts/react-custom-validator-for-string-props/5fb5bb9b08ea5d7167d6f31b"
---

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

Discussion

# [REACT : "custom validator" for String Props](https://papidev.hashnode.dev/react-custom-validator-for-string-props?utm_source=hashnode&utm_medium=feed)

Prop-types is a library that allows to introduce some validation on the props we pass to React components. It works only in development mode , writing warning/errors in the console when a prop passed to a component is not valid, allowing us to disc...

Nov 19, 2020 · 3 min read · papidev.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#string](https://hashnode.com/tag/string)
-   [#props](https://hashnode.com/tag/props)
-   [#validation](https://hashnode.com/tag/validation)

## Written by

[Luca Zanzottera](https://hashnode.com/@Zanz)

@Zanz · Italy

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
