网上体育投注

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
2 views

Refresh 2nd Material Table on the selection in 1st Table

I have 2 material tables. I want to refresh 2nd table on the selection of rows in the first table. Please see this screenshot. https://www.screencast.com/t/r4FLUxSFeRc Here is an example of ...
0
votes
0answers
7 views

how to use use css loader in w3s in reactjs?

this is file App.js constructor(props) { super(props); this.state = { ... loader: true ... }; } componentDidUpdate(){ if(this.state.loader ===true){ this.setState({...
0
votes
0answers
12 views

add red cross delete functionality onhover in react

so i have data from api and mapped over them to present these images: so i'm trying to do this project and now i'm basically stuck i'm not very good in react and css but i'm learning, and i want to ...
0
votes
1answer
14 views

Javascript to be applied on different react pages

I need to apply javascript code the most of the react page. Basically exporting from a helper file and importing on all those pages where it's needed. The following code works pretty well on a single ...
0
votes
0answers
14 views

Component rendered then disappears (react/redux/Firebase)

I'm trying to fetch data from firebase, then update the state of the app with the results and display the data as a list in a list component. Everything works except the final list component displays ...
0
votes
1answer
9 views

REACTJS - Import CKEditor 5 from online build

I got stuck at import the Custom CKEditor 5 to ReactJS. I had already searching the docs but it seems to hard to understand. First, I go to the Onine Builder in here: https://ckeditor.com/ckeditor-5/...
0
votes
1answer
9 views

react-native-svg: cannot create svg from xml

Hi I was trying to generate an svg on react-native app with react-native-svg, as per the docs I used SvgXml to generate svg from xml but it was not working. Here is the svg component: import React ...
0
votes
1answer
20 views

push dynamically coming id's and value's in javascript

The question may seem a little confusing so let me explain the situation, i have a category field, that when it's chosen, i get data from api based on that category, for example when you choose ...
0
votes
0answers
6 views

How can I move my columns to another component in react-virtualize-table?

my goal is that I want to move the columns of the react-virtualize-table to another component. Here is my code: https://codesandbox.io/s/virtualizedtable-0ndzo I would like to pack the columns of ...
0
votes
1answer
21 views

Expected server HTML to contain a matching <tag> in <tag>

We are using nextjs and getting this error at page refresh (or first load) My error is: react-dom.development.js:88 Warning: Expected server HTML to contain a matching <tag> in <tag>. ...
0
votes
0answers
19 views

How to test optional props in react component?

Suppose I have a react component having some optional functions as props. I need to test them using jest. Any ideas. Sample code is below: interface ComponentProps{ prop1(param1, param2)? : void; ...
-1
votes
1answer
28 views

REACTJS: TypeError: posts.map is not a function

I know there are a lot of questions about this but after being for one hour trying to solve it I couldn't. I am using Reducer hook And Context Hook (just FYI) in my app and on a Postlist Component, ...
1
vote
1answer
16 views

Targeting only the clicked item on a mapped component ( React quiz trivia App)

i'm trying to develop an App with React using the Open trivia Api. I have mapped a button component (using material ui) to show the different answers for each question. I'm struggling now to target ...
0
votes
0answers
6 views

Get current language next-i18next

I am using NextJS with next-i18next. This is my home page: import {withTranslation} from '../config/next-i18next'; const Home = function Home() { return (<div>test</div>) }; Home....
-1
votes
1answer
15 views

Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.(NEXT JS)

i am having this problem in my nextJS project and its frustrating me... when i try to render a component in my _app.js . this is the value of the (this.props ==> {"response":"...

15 30 50 per page
1
2 3 4 5
14655