Category "react-props"

Spread operator for props are not passing to component

I am having an issue passing spread operator props to components. Instead of returning a list with values, it is returning an empty list. This is how I'm passin

TypeScript: Interface cannot simultaneously extends two types

I'm writing a React app using TypeScript. I use material-ui for my components. I'm writing a custom wrapper for material-ui's Button component. It looks like th

Setting onBlur overrides default onBlur function

I am using a component from a library (react-native-searchable-dropdown) that already has some onBlur function implemented by default. I want to add some additi

Pass dynamic value into react-i18next useTranslate

So I have a value I am receiving from an endpoint and I'd like to pass it into my translate command. So this is what I have currently: ${t('translation:user.for

Can we pass setState as props from one component to other and change parent state from child component in React?

class App extends Component { constructor() { super(); this.state = { name: 'React' }; this.setState=this.setState.bind(this) } re

A side question to my earlier question: ternary operator

I want to ask you a quick question as a followup to my earlier question: React - syntax confusion to clarify code for TodoItem: import React from 'react' expo

REACT- Uncaught TypeError: Found non-callable @@iterator

In react, I have a component that takes in 2 destructured parameters. One of them is an array called points. However, when attempting to call the Math.max(...po

Using react-router to switch between pages but my props aren't displaying, is this a router version issue?

I'm trying to render props with the code I have written however, only my header shows. My "about" page also displays properly. This is the warning message that

React functional component - is it possible to pass props to { children }? [duplicate]

Workaround at the bottom of the question. I am trying to pass props down to a child component using {children}. The Father component: const Fa

React functional component - is it possible to pass props to { children }? [duplicate]

Workaround at the bottom of the question. I am trying to pass props down to a child component using {children}. The Father component: const Fa