Top "React-props" questions

ReactJS is a JS library developed by facebook.

React | pass data from parent to child component

In React, I'm having Files like --parent.js --child.js --App.js parent.js contains Textbox and button child.js …

reactjs react-props
Ant Design form set values form props

I'm using antd design in my form. Here I'm setting value from reducer profilereducer by using shouldComponentUpdate method. class ProfileForm …

reactjs redux state antd react-props
How to use generics in props in React in a functional component?

In a class based component, I can easily write some code like this: import * as React from 'react'; import { render } …

reactjs typescript generics react-props
`componentWillMount` warnings although no explicitly used

In my code, I do not have any explicit uses of componentWillMount, but still I am seeing a couple of …

javascript reactjs react-props
Functional Components inside class components

Currently I have a class component that contains functions that act as components in my JSX. Example: class MyComponent extends …

javascript reactjs components this react-props
this.state vs state in React

I'm working in a new codebase. Normally, I would set up state like this in a React component: class App …

javascript reactjs state react-props
How to pass style props for a specific component in react-native

I tried creating a button with specific styles for its . I had more than 3 properties like justifyContent, alignItems, backgroundColor and …

reactjs react-native styles react-props
How to get the address from google maps autocomplete in React Native

I am using react-native-google-places-autocomplete to select a location. I want to extract the location selected and use it in other …

google-maps react-native autocomplete react-native-maps react-props
Re-render same component on url change in react

I have a route which takes an id and renders the same component for every id, for example : <Route …

javascript reactjs redux react-router react-props
Component not updating when I change the props that I pass to it in React

I have a functional component which has a child component. The child component displays some text which is passed onto …

javascript reactjs parent-child react-props rerender