Most voted "react" questions
It is an open source Javascript library for creating user interfaces. It is maintained by Facebook, Instagram and a community of individual developers and other companies
Learn more…1,420 questions
Sort by count of
-
-3
votes1
answer51
viewsReactjs no matter the css
I’d like to know what the problem is with: import './styles.css'. The error is as follows: ./src/index.css…
-
-3
votes1
answer25
viewsthis.state.value returning Undefined when it is changed
I am developing a system and a part of it will be register and edit the schedules, I am able to return the data of times on the screen, but when I try to edit and click on the button to give an…
-
-3
votes1
answer46
viewsHow do I return the date?
renderItem = ({item}) => { return( <TouchableWithoutFeedback onPress={()=> this.setState({isItemVisible: true, modalData: {...item}})}> <View style={{ flexDirection: 'row', flex: 1,…
-
-3
votes1
answer90
viewsReact, map with 2 json without id
I would like some help: I have two Json: posts and Author. Json posts have no id. Ojson returns right in the log. I already have the card component created, but I can’t render the posts on the…
-
-3
votes1
answer210
viewsHow to correct this NODEMON error?
I wanted to ask for help to solve this problem. I am taking a course of React Native online but the instructor does not answer my questions. I am unable to find the problem. Follow the error:…
-
-3
votes1
answer35
viewsHow can I reuse a Handlechange?
I have this code here which changes the box color according to the range input, but instead of 3 handlechange would you like to do just one, how do I do that? So far my code is like this: let…
-
-3
votes1
answer39
viewsHow do I display in columns instead of a grid ? preference inside the <div> tag
{ data.data && Object .keys(data.data) .map(cli => { return( <tr key={cli}> <td>{data.data[cli].nome}</td> …
-
-3
votes2
answers550
viewsHow can I leave the dynamic baseURL in React
Hey, guys, what’s up? I have a question and would like help, I am using React to make a web page where any user can use it to consume Apis. To do this I am using the Tips, my question is the…
-
-3
votes1
answer240
viewsUse component when clicking on jsx button
I’m trying to render the component Feed within that Main in jsx, but I’m not getting it. Follows the code: function Feed(props){ return( <main className='post'> <p…
-
-3
votes1
answer45
viewsHow to know the parent element size and change child element attributes? [Styled Components]
Good afternoon, how do I know the size of an element to change the width of another child element? I have a Container element that wraps the Table when the table have a width greater than 1400px I…
-
-3
votes2
answers48
viewsFunction does not enter useEffect
I have this little project to make a beast clone of Linktree with Ode, but I have a boring problem. The default function simply does not enter useEffect, which is where I call the existing Trees.…
-
-3
votes0
answers12
viewsBuild React Electron app for linux
I’m a beginner on Electron and I made my first app using React and Electron but I’m having a lot of problems generating one. deb to install on linux. It generates the . deb properly however the file…
-
-4
votes3
answers116
viewsHow to return the value of a file outside its scope
[I hate javascript/typescript] Here’s the thing, I have a problem where I need to get the result of a file with Axios and return to a function in React. Is there any way to do that ? I want to…
-
-4
votes1
answer61
viewsuseState in Reactjs?
I’m starting to React after studying Javascript and trying to do a very simple thing, which is to write a name I one input and appear on the page. import React from 'react'; function App() { return…
-
-4
votes2
answers626
viewsReset React-Select (Unform) after Ubmit
I’m studying Reactjs and Typescript, and also a lib for forms called Unform (https://github.com/Rocketseat/unform). I have a form with some fields, among them a Select field…
-
-4
votes1
answer216
viewsProperty 'todos' is Missing in type '{ setTodos: (todos: Itodo[]) => void; key: string; text: string; }' but required in type 'Props'
These are my mistakes: Property 'todos' is Missing in type '{ setTodos: (todos: Itodo[]) => void; key: string; text: string; }' but required in type 'Props'. Property 'id' does not exist on type…
-
-4
votes1
answer294
viewsReact Hook "useState" is called in Function
Good evening, I performed a CRUD project with Node, React and Mysql, but when trying to create routes in front-end, is generating the error: React Hook "useState" is called in Function "Register"…
-
-4
votes0
answers14
viewsMy div is not moving when using Framer Motion in React
It was supposed to be a div down when I scroll the page, but that doesn’t happen. Someone could tell me the possible reasons? const { scrollYProgress } = useViewportScroll(); const frameTop =…
-
-5
votes1
answer273
viewsReact Native not working
Eae you guys, blz? I want to start making application with React Native, I’ve installed the programs necessary to be able to start it, but when I put the command in cmd "npx React-Native…
-
-5
votes0
answers16
viewsHow do I create a component that waits for changes in the database and updates the Iprs?
How do I create a component that listens to changes in the database (my db is just a .json with an object) and update the Infos along with the changes. I’m new to Act This is the code I’m using:…