Top "React-component" questions

Use this tag for questions regarding React components, one of the basic React concepts.

How to add custom html attributes in JSX

There are different reasons behind it, but I wonder how to simply add custom attributes to an element in JSX?

javascript html node.js reactjs react-component
What are React controlled components and uncontrolled components?

What are controlled components and uncontrolled components in ReactJS? How do they differ from each other?

reactjs react-component
How to use useStyle to style Class Component in Material Ui

I want to use useStyle to style the Class Component . But this can be easily done hooks. but i want …

javascript reactjs material-ui react-hooks react-component
React warning: Functions are not valid as a React child

I have this react component. This is not rendering properly but getting an annoying warning like Functions are not valid …

javascript reactjs react-component
React - Dynamically Import Components

I have a page which renders different components based on user input. At the moment, I have hard coded the …

javascript reactjs import components react-component
How to use Iframe in react native?

I try to find any way to add Iframe to my react native app. I found react-iframe, but it didn't …

react-native iframe react-component
Customize material-ui popover

I want to give the material-ui popover this following shape shown in the image. I have created the popover working …

javascript reactjs material-ui css-shapes react-component
Stateless component React router

I am new to React and Redux, I am actually creating a code of myself but I got stuck with …

reactjs redux react-router react-router-v4 react-component
Scroll to a particular div using id in reactJs without using any other library

Scroll to a particular div using id in react without using any other library, I found a few solutions they …

javascript reactjs dom scroll react-component