DEV Community

Discussion on: How I can pass a state obtain for a onchange select and pass it like a parameter in a another component using fetch api

Collapse
 
dance2die profile image
Sung M. Kim

Hi Bryanrojas,

Could you format the code snippets (Refer to the Editor Guide - dev.to/p/editor_guide) and possibly a minimal runnable sample using sites like CodeSandBox or StackBllitz?

Collapse
 
bryanro81647827 profile image
Bryanrojas

Hi,yes this is CodeSandBox codesandbox.io/s/dark-butterfly-swty8
can you help me with this issue, I want to pass like parameter the state of idDepartamento from my component Department to my component Provincia where i want to put in a fetch api like parameter dynamically.