# \[React\] Pass props without rendering the component?

**URL:** <https://forum.freecodecamp.org/t/react-pass-props-without-rendering-the-component/272969>\
**Category:** Curriculum Help\
**Tags:** javascript\
**Created:** [April 22, 2019, 11:06am UTC](https://forum.freecodecamp.org/t/react-pass-props-without-rendering-the-component/272969 "2019-04-22T11:06:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![react](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@react](https://forum.freecodecamp.org/u/react)\
**Post date:** [April 22, 2019, 11:06am UTC](https://forum.freecodecamp.org/t/react-pass-props-without-rendering-the-component/272969/1 "2019-04-22T11:06:52Z")

</div>

I’m rendering a list of items in a component, and want to pass that function to the homepage where I’d render only a selection of the items.

How can I do that without rendering the homepage on the list page?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 2, 2021, 11:09am UTC](https://forum.freecodecamp.org/t/react-pass-props-without-rendering-the-component/272969/2 "2021-02-02T11:09:26Z")

</div>

Closed on February 2, 2021, 11:09am UTC


