Category "reactjs"

How to use Exec / ExecFile on Javascript to run a java file and get the result

Running this JS file on the server side of my website so when the user presses a button, it executes this command with my API: exports.runAlgorithm = async (req

React-Router: Force reload in browser

We have a monolithic react SPA deployed with AWS Cloudfront. We are trying out microsite architecture where each route/path in the react app will be built and d

cannot find module '@babel/generator' but it installed

i have " cannot find module '@babel/generator' " error while trying generate signed apk. But i installed this package using yarn add, this is part of my package

How to use TypeScript and forwardRef in ReactJS?

I'm having a problem when using forwardRef with TypeScript. What I want? pass a typed ref to the child component. What am I getting value of console.log - child

Is there a way to change the react-chart-js tooltip only on a graph?

I have the following: const labels = historicosData.map(historico => { const localDate = new Date(historico.fechaIngreso); return localDate.toLo

github Dependabot alert: Inefficient Regular Expression Complexity in nth-check

Possible duplicate, but couldn't find any clear answers. Dependabot cannot update nth-check to a non-vulnerable version The latest possible version that can be

Removing media query from all components

I would like to ask if there is any way to disable/remove all media query in React for all component libraries like Material-UI etc?

React Material UI Visual Editor

I'm starting an open source project, a visual editor for React Material UI. This is the link to the project. Users will be able to drag and drop material compon

Attempting to create a dynamic react pdf report generator based on params

Code below: codesandbox.io/s/muddy-monad-zqwt73?file=/src/App.js Currently, unsure why, the pages are not making it into the document and an empty Document is r

CSS animation/keyframe speeds are different when looking at the site locally and on a code sandbox?

I have the exact same code on my local machine as I do on StackBlitz (an online Next.JS sandbox-type website), and for some reason - the animation speed for the

marker is showing out of the map in mapboxgl react project

I am using mapboxgl for the first time. i found the source code from github. the map is working fine but the marker is showing outside of the map. don't underst

Is there a default function I could use for comparisons with React.memo?

I have a <Track/> component that have an object as prop; like const myData = { "location" : ["http://example.com/1.ogg", "http://example.com/2.mp3

auth.currentUser shows undefined on HomePage

I have a file where I have written all the firebase related functions, including this one here function CurrentUser(){ console.log("auth", auth) return auth.cur

Adding a logo in printed page (pdf) not in actual page using react-to-print

I'm trying to add a logo on top of the printed page not in the page that browser or device renders. I'm using react-to-print to print page in PDF format.

How do I change slate editor value using Javascript (DOM manipulation)

I want to change the text in the slate editor using DOM manipulation via Javascript. Dynamically change the values filled into editable components in a particul

What's hydrate action in Next Redux Wrapper?

Recently I started using Next.js and I have a question about the next-redux-wrapper package. I don't really understand the HYDRATE action. So I wonder concretel

react-router-dom router change the url but nothing else. All of components are not changed

I can't solve why it doesn't work. When I clck on the link new page the url is changing but the page not (it should change to new page with div witch some conte

How do I persist auth between react and a flask server

I created a flask server and added the following endpoints to this server: @auth_routes.route('/login', methods=['POST']) def log_in(): log_in_data = reques

Unexpected token '.' when run create-react-app

I am trying to create a new React app using this command on Windows using Node 16.14 npx create-react-app my-app But it fails with this error npm ERR! Unexpecte

How to create fixed scrolling in Locomotive Scroll in Next.js

I'm currently using Locomotive Scroll with NextJS to implement smooth scrolling. The web app that I'm currently developing with NextJS requires a fixed scrollin