365体育足球滚球比分

All Questions

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

How to handle videojs picture in picture mode in spa, react js? If I am routing through pages

I am having a route for video /video/id. If I am changing video to Picture in picture mode, and go to another page, how can I handle it? Now I am disposing videojs on componentWillUnmount. If I am not ...
0
votes
0answers
8 views

Redux: help filtering out/deleting array item of a property in my reducer

Hello So I want to give my reducer the ability to remove an item in an array of a property. I am working with a state of users that looks like this. users = { 'testUser1:{ id:'', ...
0
votes
0answers
10 views

How to execute method on constructor of the component class?

The code i have right now allows me to fetch data from database and display it on a table with a filter to show tables according to a unique id. Now i wanted to add a description column that rows is ...
0
votes
1answer
20 views

React Running the code Before State Change

I'm new with React and ES6,I have a component like This: import React, { useState } from 'react'; const Order = () => { let username='Test',password = 'secret'; const [Data,setData]=...
0
votes
0answers
10 views

React Router protected routes

I'm learning React Router (protected routes, to be precise) and in React Router documentation there is a function which I almost understand but there is one line of code which I can't see how it ...
0
votes
0answers
11 views

Fix a axios post request in react component (Not running)

I am designing a website that uses the Spotify API. I am currently developing it in the MERN stack and have had some difficulties when calling my back-end using axios. I set up a proxy to http://...
0
votes
0answers
9 views

Intermittent Axios delete 404 error but always deleting from database

My Axios delete function below is catching a 404 error intermittently even though it is always deleting from the database. const api = "http://localhost:4000/api/message"; export const ...
0
votes
0answers
13 views

React inline Styling not applying

Hey guys I am just trying to render a set of paragraphs that contain news articles. I am using the inline styling method creating an object and assigning its value to the <h2> tag using the ...
0
votes
0answers
11 views

Props not being passed down to Material UI button text

I have a scenario in my app where I use data attributes on buttons to capture certain contextual information in the modal that is launched by pressing the button. This relies on the data attributes ...
0
votes
0answers
8 views

How to deal with nested useEffect?

Recently started using Hooks and, as cook as they are, they are giving me a bit of a headache. I have a custom useFetch() hook that deals with fetching data from the API. I also have a component where ...
0
votes
1answer
10 views

Type error: Cannot read property offsetTop of null react. Unmounted component

I'm having a problem with a react component I made, which animates its children into view once the user has scrolled past a certain point on the page. The animation functionality works fine, but upon ...
0
votes
0answers
9 views

Screen Orientation in React or React-Native

I'm trying to use react in order to grab the screen orientation from your current window, and based on that, I would like to either to lock the orientation to landscape or alert the user view in ...
0
votes
2answers
28 views

printing out items from an array within an array of objects

I am trying to create some pills for a card display. I have an array of objects which I am mapping over to produce them on the page. Within the objects I have an array called tech which has something ...
0
votes
0answers
20 views

How can I change the color of the clicked button in React JS?

I made a simple calculator and I want to change the buttons background color when it's clicked. I want to have the code in the handleClick function, I commented the place where I want to change the ...
0
votes
0answers
14 views

\[…Array(n).keys()\] returns Array Iterator in NPM?

I'm trying to create a library and put it on NPM registry. I use create-react-library as a starter. In my code I need to create an array with range ([0, 1, 2, ... n-1]). According to this post, I did: ...

15 30 50 per page
1
2 3 4 5
6750