Category "reactjs"

Using function defined in custom hook does not update some value in the state

i recently started using react and i'm trying to write a custom hook used for translating some ui elements. I'm not using a library because it is a larger proje

Can't retrieve data from POST in django view

I have issue with retrieving data from POST in my django view. I send React form values with axios to my django backend. I believe data gets put into POST but s

React + Webpack 5 + Babel 7 IE11 issue -- not attaching to root

I have been scouring the internet for solution after solution and nothing seems to be working for me so I'm requesting help. Issue: No matter what I do, I can't

Firebase, Changing User password via Email with unique password requirements

Currently, Firebase offers the option to send an email to a users email who wishes to change their password. Unfortunately, Firebase does not allow you to edit

React Router 6 in Electron - No routes matched location

I am trying to use react-router v6 in an electron js application. but it doesn't work for me. This App works correctly without implementing the react-router! Wh

Fetching data from websocket to react

I'm relatively new to React, and am looking to combine my React application with a websocket connection. I'm able to establish a connection via the websocket co

GatsbyJS - GraphQL ACF query issue

So I am encountering some issues with the way that my ACF is structured on a custom post type. Due to the way the post type works (it's for work case studies) t

Render() Modal test Jest Enzyme

I am not really how to test render() Modal. I am able to set up the props and test Render () " make sure it render with all the props" correctly " without any p

Dynamically Position an Element on webpage

I am trying to use a Emoji picker inside my React application and there are 2 buttons on the page to toggle the picker, I want to show the picker at the positio

How to transform the word Gr\u008Egoire to it's normal form in Javascript?

Hope you are doing well! I have a list of french names with accents, but I receive them encoded like "Gr\u008Egoire", but I want to display the real word. Thank

Firebase notification supports webpack from what version?

Im using "webpack": "^4.16.1" when i create a create-react-app the Firebase notification works fine but when i install like that on webpack4 it shows the follo

toHaveStyles not working with module.css styles using React testing library with Jest

I have this component for which I am writing test case using react testing library I am facing an issue with styles when the styles is imported from .module.cs

RematchJS - how can I access the state in a model's effect without sending a payload to dispatch

I'm using RematchJS and I'd like to access the state in a model effect without sending a payload to the effect. The model looks something like this: export cons

Passing query params or body with NextJS + Auth0?

So, my knowledge of next and JS in general is extremely minimal as is my Auth0 knowledge. I was wondering if anyone could suggest how to pass query parameters o

Disable this console messages that appears in event handlers at React

How to disable these console messages when doing an event handler (like onChange) in react. It comes to this file called ContentScript.js but I don't know how t

Change github repo for deployed heroku project

I am looking to create a new portfolio. The current one is just using nodejs / express and the basics. It is already deployed on heroku. I would like to maintai

VSCode -- update import paths on file name change?

I keep reading that VSCode does this natively, but I can't figure out how to get it working for me in a React project with jsx files. It doesn't work with any f

React-native google signin gives Developer Error

I am trying Google login using React-native-google-signin plugin but it gives me a Developer_Error.I have done exctly same as mention in its document.here is my

Jest SpyOn choose the correct overload

I do have a class that has 2 overloaded methods. public static create<M extends Model>( this: ModelStatic<M>, values?: M['_creationAttribu

Update Parent State from Child Component and send back response to child

I have two components, Component A - const handleLike(id) { ..... handle the logic for the button and setting the state } <ComponentB handleLike={handleLike