<form id="3dhzh"></form>

    Questions tagged [reactjs]

    React 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
    8 views

    Scrollable element fixed on the bottom of the page

    I need to have a scrollable element at the bottom of my page. I thought I woul simply would set position: fixed and bottom:0. The issue is, this is to be a horizontal list of items, which I should be ...
    0
    votes
    0answers
    5 views

    Material UI Switch no UI change

    I'm using Material UI's switch to change themes on a multi-page app. The only bug that happens is the switch does not move from left to right (ui functionality does not occur), but the onChange ...
    0
    votes
    0answers
    10 views

    React useContext returns default values

    I'm trying to create a darkmode library based on https://github.com/luisgserrano/react-dark-mode. This is where the context is created. import React from 'react' const ThemeContext = React....
    0
    votes
    0answers
    4 views

    SCRIPT1002: Syntax error in Next JS website in IE11 (getSession)

    I am new to NextJS but have managed to make a website that works fine in all browsers except IE11. The issues in the console read.... SCRIPT1002: Syntax error _app.js (20481,19) Which is this ...
    0
    votes
    2answers
    16 views

    Split out props.location.search value

    I'm trying to split out the values from props.location.search in React/Redux. I've successfully obtained the mixOne split however I can't seem to return the value of quantity. Here's my code: const ...
    0
    votes
    0answers
    9 views

    Data dependencies using react/redux

    Dears, I am wondering how to manage my data in most efficient way. I have a redux state where I store transactions (divided into incomes/expenses). Either incomes and expenses has separate state. Eg: ...
    0
    votes
    0answers
    17 views

    prevent entering anything except number and '.' in input field for amount value in react

    I need that input entered should not contain anything except digits and '.' . I am using the following to restrict entering invalid characters. on key press event. this.AmountRestrictCharacter = /^(?:(...
    0
    votes
    0answers
    9 views

    Delete a comment from a post: comment won't delete or wrong comment deleted, commentId undefined

    I'm trying to allow a user to delete a comment from a post. The code I currently have returns no deleted post: { n: 0, ok: 1, deletedCount: 0 }. If I change _id to id in comments.js, it will delete a ...
    1
    vote
    1answer
    17 views

    Is there a way to get all this datas out and have them in an array

    [{…}, {…}] this is the data structure i have when i open the object i have this 0: {name: "Radio", total: 11800} 1: {name: "Billboard", total: 350000}
    0
    votes
    0answers
    7 views

    .NET core ssrs report viewer with react

    so after learning that Reportviewer isnt supported in .net core. So what I did is as follows: I moved the reporting stuff to their own API that runs on windows and .net 4.7 and still made use of MS ...
    0
    votes
    1answer
    26 views

    Reduce function returning NaN when pulling object from array - MongoDB database, React frontend

    I have the following Schema: const SubmitDebtSchema = new Schema ({ balance: [{ balanceDate: Date, newBalance: Number }], }); I am attempting to loop through my database entries, pull the ...
    -1
    votes
    0answers
    14 views

    How to POST form data from React Front End to my backend?

    I'm trying to figure out how to send React Form data to my backend and into my mongoDB database. I can create an admin and log them in when testing this out in postman but I cannot figure out how to ...
    -2
    votes
    0answers
    13 views

    Search bar in React issues

    I would like to implement asearch bar in my application, i have API and now it is expected when user type something in the search-bar then it is refered him/her to another page for results. Can any ...
    0
    votes
    0answers
    20 views

    Constant import to react component

    I am creating an application using the React library, but my problem is more related to JavaScript ES6 itself. I have a component (page) in which I use FAB (Floating Action Button) of my own design: ...
    0
    votes
    1answer
    22 views

    Return value is always same in useEffect

    I have tested my backend API with postman and it works fine as it should be. But when I send a request from react js it always return 0. My expected return value should be 1 as this row already exist ...

    15 30 50 per page
    1
    2 3 4 5
    17594
    246好彩天天免费资枓大全