2020欧洲杯手机版注册

Questions tagged [reactjs]

React (also known as React.js or ReactJS) is a JavaScript library 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
11 views

calling a function inside a component

I'm working on a simon-says game as my first React Native app.The idea is to show the player the sequence according to the round we're in, then let the player press a button, check if that button ...
0
votes
0answers
20 views

How to create an action that returns a promise with arguments?

Goal: create an action that returns a promise, that takes arguments, and utilizes dispatch. the best I've come up with for the action:export const loginAction = (arg1, arg2) => { return (...
-1
votes
0answers
10 views

How to load external library from local path

I have a code importing list of external urls(http//....js)` for (const id in urls) { let tag = document.createElement('script'); tag.async = false; tag.src = urls[id]; ...
-1
votes
0answers
10 views

Unable to create reactjs app using create-react-app

I am stuck at creating react app using npx create-react-app commandThe terminal stops or freezes after below lines"35 packages are looking for funding run npm fund for detailsFound 0 ...
0
votes
0answers
4 views

material ui TextField variant outlined, problem with react-seles

hello i have a problem because, like you can see in the image, when i use react-select and textfiled with variant="outlined" because the label of the textfield shows itself even over the option, there ...
0
votes
0answers
8 views

Creating a barrel file in react (using .tsx)

Here's my folder structure:srcassetscomponentsmodelscounter.tsxindex.tsCode inside of models/index.tsx (the barrel file)export * from "./counter";Code inside models/counter.tsxexport ...
0
votes
0answers
3 views

Positioning Materialize CSS switches in a tabular fashion

I have encountered with a Materialize Switch alignment issue, hoping you can help with it.I am trying to align two switch elements so that the switch sliders start at the same x position.here is a ...
-2
votes
1answer
10 views

Device: (0:0) /module:/App.js: Unexpected token (12:2) ESLint: (12:3) Parsing error: Unexpected token

I am struggling with my navigation in react. Any Ideas?Gettin this errors:Device: (0:0) /module:/App.js: Unexpected token (12:2)ESLint: (12:3) Parsing error: Unexpected tokenimport React from '...
0
votes
0answers
18 views

My program is 'skipping' a fetch request, React.js

Its really weird.The first fetch I do works appropriately, but when doing the second fetch in my handleSubmit() method it sort of 'skips' it. It goes on, never enters the .then statements, doesn't ...
0
votes
1answer
7 views

When you use DRF(Server API) + React(public Web Client), how do you implement for OAuth2 social login?

I am developing Django(Server) with React(Web Client).And I want to use facebook social login.I knew that client is public client, server is confidential. So I want to use authentication code grant ...
0
votes
0answers
8 views

Why can't I call the hook inside the wrapper that mocks a functional component?

import { useState } from 'react';export default () => { const [value, setValue] = useState(''); return { value, onClick: (event) => { setValue(event.target.value); }, ...
0
votes
1answer
28 views

I didn't put function on args of component. What should I fix it? React

Compiler says const Form = ( submit: (email: string, password: string) => void, message:string) { return (//omit//) } const submitC = ( userName: string, password: string ) =&...
0
votes
0answers
29 views

Struggling to render multiple components onto a page using a function + for loop

I want to render components into my React app using a for loop inside of a function.But when I add n > 1 number of components to the variable I am returning inside of the function, the page ends ...
0
votes
0answers
6 views

How to force https for a React app deployed on Google App Engine node.js flex environment?

I want to force https connections for my React app deployed on Google App Engine node.js flexible environment. My React app was created with npx create-react-app my-cool-app And I have an app....
0
votes
0answers
10 views

How to i add a new row to the materail ui datatable on submiting a form in react?

I am using material-ui datatable in react. I have created a react-hook-form on another js file. On this i have passed an onSubmit function which reads the data and used localstorage to store the ...

15 30 50 per page