---
title: "Discussion on \"TIL #2: How to Conditionally Add Props to a React Component?\" | Hashnode"
description: "Discussion on \"TIL #2: How to Conditionally Add Props to a React Component?\". Sometimes we need to avoid passing the entire prop key based on some condition, the conditional spreading here to rescue."
url: "https://hashnode.com/posts/til-2-how-to-conditionally-add-props-to-a-react-component/61b1c2fd1907c16be2edfda4"
---

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

Discussion

# [TIL #2: How to Conditionally Add Props to a React Component?](https://nsblog.hashnode.dev/til-2-how-to-conditionally-add-props-to-a-react-component?utm_source=hashnode&utm_medium=feed)

Sometimes we need to avoid passing the entire prop key based on some condition, the conditional spreading here to rescue.

Dec 9, 2021 · 1 min read · nsblog.hashnode.dev  
Updated Dec 14, 2021  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#til](https://hashnode.com/tag/til)
-   [#ui](https://hashnode.com/tag/ui)

## Written by

[Navdeep Singh](https://hashnode.com/@navdeep)

@navdeep · Amritsar, India

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

Full Stack Developer - JavaScript

I am a self taught web developer owning experience of 12+ years in web development field.

## Responses 1

Markdown supported · ⌘↵ to post

[Rad Ley](https://hashnode.com/@radley112)

[Jun 6, 2022](https://hashnode.com/posts/til-2-how-to-conditionally-add-props-to-a-react-component/61b1c2fd1907c16be2edfda4/comment/629dc849fdc0394c22fdcb46)

The most vital piece of advice is to keep your mind calm and composed. At first glance, [slope unblocked](https://slopeunblocked.co/) appears to be a basic game, but it is well worth your time to play at least once. The amount of time you spend playing the game will surprise you. The slope is an unblocked online game with a simple design that won't strain your eyes and will keep you entertained for hours. The game is suitable for both children and adults. It's a game that anyone can play anywhere in the world.
