---
title: "Discussion on \"Dynamic Props in React.js\" | Hashnode"
description: "Discussion on \"Dynamic Props in React.js\". Using && inside a prop ❌ (can send false)\ntype MyComponentProps = {\n  desc?: string;\n};\n\nconst MyComponent = ({ desc }: MyComponentProps) => {\n  return <div>Desc is: {desc}</div>;\n};\n\nexport default function App() {\n  const format = 'email'; // not '..."
url: "https://hashnode.com/posts/dynamic-props-in-reactjs/680e129d9ab9f15d476d699b"
---

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

Discussion

# [Dynamic Props in React.js](https://yog3sh.hashnode.dev/dynamic-props-in-reactjs?utm_source=hashnode&utm_medium=feed)

Using && inside a prop ❌ (can send false) type MyComponentProps = { desc?: string; }; const MyComponent = ({ desc }: MyComponentProps) => { return <div>Desc is: {desc}</div>; }; export default function App() { const format = 'email'; // not '...

Apr 27, 2025 · 2 min read · yog3sh.hashnode.dev  
Updated May 11, 2025  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#props](https://hashnode.com/tag/props)
-   [#props-in-reactjs](https://hashnode.com/tag/props-in-reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#typescript-generics](https://hashnode.com/tag/typescript-generics)

## Written by

[Yogesh Kanwade](https://hashnode.com/@YogeshKanwade)

@YogeshKanwade · Pune, India

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

Final Year CSE Student

I'm Yogesh Kanwade, a final year Computer Engineering student with a deep passion for software development. I am a continuous learner, with hardworking and goal-driven mindset and strong leadership capabilities. I am actively exploring the vast possibilities of Web Development along with AWS and DevOps, fascinated by their impact on scalable and efficient web solutions.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
