网上体育投注

Questions tagged [reactjs]

React (also known as React.js or ReactJS) is a JavaScript library developed by Facebook for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Pass Item Information from Flatlist to another Modal

I want to be able to touch the item that are being shown in my searchfield and display them in a new modal. For example sometimes some counties have a similar name and more than one will be displayed ...
0
votes
1answer
18 views

How to stretch my background using css in react ? (handle overflow)

Here when i am in my homepage the background renders just fine It completely covers everything (except navbar which is expected) What Breaks the css I recieve and render alot of images in my page ...
1
vote
1answer
13 views

MaterialUi custom breakpoints not applied

Based on this question, I tried to have a theme that uses a common config file(that should be used by other themes as well). So I figured the breakpoints would be a good starting point since they ...
1
vote
2answers
26 views

React get the input type=file value

I have this element: <input type="file" id="newFile" onChange={handleFileChange} /> <input type="text" id="newMessage" onChange={handleMessageChange} /&...
0
votes
2answers
16 views

React Final Form is taking initial value by default ?How do i remove it?

component="select" taking first option as initial selection, though it is not specified anywhere. How do i remove the initial selection for component="select" in react final form ?
0
votes
1answer
11 views

Cannot find module 'react-bootstrap' with module other than commonjs

I use React with Typescript, but cannot use React Bootstrap with a module other than commonjs. I first install react-bootstrap package: $ npm i react-bootstrap And then write the code to use it, for ...
5
votes
2answers
6k views

How can I check if user exists in Firebase?

I finally got my authentication to work in terms of creating users and logging in and out. But now, I want to implement something that checks if the user already exists in Firebase. I've looked it ...
0
votes
0answers
11 views

Nesting navigators in React Navigation

I'm making an app in wich I have more than one type of navigation, but I'm not sure how to implement it, until now, my apps only had one type of navigation. I tried to read the react navigation docs ...
0
votes
0answers
11 views

useSelector returns an undefined, but I'm not able to access to the value

I'm programming this simple app in react native, but when I try to make the axios request I'm not able to concatenate the url and the "user" and "repo" const taken from the store. ...
3
votes
2answers
944 views

WSL 2 cannot conect to MongoDB

I am developing a web app in my local using WSL 1 a while back. It works perfectly with MongoDB on local but after upgrading to WSL 2, I could not connect at all. I can still run the react app. Here ...
0
votes
0answers
12 views

React-native infinite re-renders

I am build a replica of the 2048 game. I am working on the animations right now and I seem to get infinite re-renders for some reason when updating the state with any kind of array. It seems that ...
0
votes
0answers
16 views

onClick parameter passed through is undefined

I am using ReactJS functional component to display a list of attachments and want to pass a parameter through an onClick on the attachment div but the parameter I am getting in the function ...
-1
votes
1answer
10 views

type annotations can only be used in typescript file. react native error

enter image description here error: type annotations can only be used in a typescript file. react-native error.
-3
votes
0answers
28 views

I need the Logic to build a improvised snake game in a 10*10 grid [closed]

I have to build a 10 x 10 grid and then set three cell together with similar background so that it resembles a snake and then on clicking any one of the 100 grids the snake should translate using the ...
22
votes
2answers
22k views

How to focus something on next render with React Hooks

I'm playing with hooks, and I'm trying to do the following: import React, { useState, useRef } from 'react'; const EditableField = () => { const [isEditing, setEditing] = useState(false); ...

15 30 50 per page
1
2 3 4 5
15185