---
title: "Discussion on \"Two ways I discovered to pass dynamic (arrow and non-arrow) function parameters\" | Hashnode"
description: "Discussion on \"Two ways I discovered to pass dynamic (arrow and non-arrow) function parameters\". In my attempt to understand how the clsx utility is written by looking at its source code, I found that clsx does not have function parameters declared.\n\nHow is it possible to access the parameters without declaring them? clsx expects dynamic paramet..."
url: "https://hashnode.com/posts/two-ways-i-discovered-to-pass-dynamic-arrow-and-non-arrow-function-parameters/6654ed59bc82cdc5405f29dc"
---

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

Discussion

# [Two ways I discovered to pass dynamic (arrow and non-arrow) function parameters](https://ramunarasinga.hashnode.dev/two-ways-i-discovered-to-pass-dynamic-arrow-and-non-arrow-function-parameters?utm_source=hashnode&utm_medium=feed)

In my attempt to understand how the clsx utility is written by looking at its source code, I found that clsx does not have function parameters declared. How is it possible to access the parameters without declaring them? clsx expects dynamic paramet...

May 27, 2024 · 2 min read · ramunarasinga.hashnode.dev  
Updated Apr 29, 2025  
Read the article

-   [#clsx](https://hashnode.com/tag/clsx)
-   [#classnames](https://hashnode.com/tag/classnames)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Ramu Narasinga](https://hashnode.com/@ram11)

@ram11

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

I am a FOSS enthusiast who explores patterns in the Github wilderness.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
