正规365体育投注

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

I am getting an error while trying to install new React App

This is the error I am getting. I have tried: npm install npm cache clean --force I also uninstalled and re-installed the entire Node.js package. Still, I keep getting this error. Also, I am doing ...
0
votes
0answers
7 views

How to submit multiple forms data all at once in React?

I have 10 components displayed as a side nav list items. Each component is a form (Formik, Material, Yup). When the user clicks on one of the items he goes to a corresponding form page, he can fill ...
0
votes
2answers
32 views

why does my button need to be clicked twice to trigger

im trying to detect a duplicate everytime i type something new in input, i use a simple for loops, the problem is i need to click the button twice if the the new input is not a duplicate, but if the ...
0
votes
1answer
13 views

React 16: access context from outside of function component

I'm using React 16 and trying to use a React hook to access context. const { locale } = React.useContext(LocaleContext); This hook call is being done inside a Redux middleware. I then get the error ...
0
votes
0answers
19 views

How to logout user when token expires in react app

I am working on a app where I am using react as my front-end and React-apollo-graphql for my api calling. I am using react-hooks i.e in react 16.8 + What I am doing I have crated a auth.js file ...
0
votes
0answers
14 views

Opening Modal from different component

CardComponent: export class Card extends Component<Prop, State> { CancelModal = [ { title: "Title", description: `Are you sure you want to close`, } ...
0
votes
0answers
7 views

Flutter_AppAuth not closing browser and retrieving access token / user object from NodeJs

I'm trying to use flutter_appauth to connect to my identity provider, using FusionAuth, in my flutter app and got some problems: I have followed this instruction / guide to set up my nodejs express ...
0
votes
1answer
8 views

How to skip the update of state inside getDerivedStatefromProps() in childComponent only for the first time of rendering the childComponent

Hi I'm new to Reactjs. I want {this.state.data} of the below childComponent to be incremented 5 on each time this component is getting loaded. So i'm doing that under the static method ...
0
votes
0answers
8 views

Antd Treenode title and height css setting

I am using Antd v4.2.4 Tree (example: virtual scroll) from the link. I woulld like to use the virtual Scroll which can be used by setting "height" prop of the Tree. All is fine till here as in the ...
0
votes
1answer
9 views

res.sendFile() shows my html, but doesn't render react components

I am making my first MERN site. I am getting a little stuck when I try to connect the react frontend, to the express backend. I am pretty much done with my frontend and can navigate my pages there. ...
0
votes
1answer
12 views

How to add anchor tag in the string passing to checkbox in react

How to add anchor tag in the string passing to checkbox in react Snippet like <Checkbox label="I have read the <a href="some site url">Terms and condition</a> and agreed it" /> ...
0
votes
1answer
12 views

Connect pages and React-bootstrap Nav

I have created a NavBar using react-bootstrap. The Navigation bar itself is desing but I do not know how to connect menu item and pages. I have created all the Pages in js following the format below, ...
0
votes
0answers
16 views

How to use Django Backend Permissions in React Frontend?

I am implementing a simple object level permission using the django rest api backend and react.js frontend. I can successfully restrict the permission to a specific component in my backend by granting ...
0
votes
1answer
15 views

Fix active Nav Link in React Bootstrap

Whenever I click a Nav Link, it does not set the link to active. Shouldn't Bootstrap be doing this automatically? I've seen some suggestions on adding css code, but how would I manually add CSS code ...
0
votes
0answers
3 views

How to detect Faces for Local Image using Clarifai

I'm trying to detect Faces from Images Which I am taking from Local Folder using Clarifai Api. But I am Unable to do so and getting and object as response. Then Network tab shows as pending and gives ...

15 30 50 per page
1
2 3 4 5
14394