Skip to main content

Questions tagged [reactjs]

React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be efficient and flexible.

1 vote
0 answers
58 views

Render Error when using components from @react-three/drei for Android

I am developing an Android app using React and ThreeJS that allows the user to view a 3D object and rotate the camera. Whenever i try using any @react-three/drei components including either one: ...
1 vote
1 answer
10k views

How to test Reac Lazy inside an object

At the project I'm working on, there's a few named exports like the object below: export const object = { component: React.lazy(() => import('some-component')) } (They have more properties but ...
0 votes
0 answers
10 views

Managing Multiple WebSocket Connections in React with Shared Connections for Components Using the Same URL

I'm working on a React application where I need to manage multiple WebSocket connections. Specifically, I want different components to be able to share a connection if they use the same URL. I'm using ...
-1 votes
0 answers
23 views

TypeError: Cannot read properties of undefined (reading 'numberOfCakes')

I am beginner to React and Redux I am trying to learn Redux with React. I have created a store in store.js as below - const redux = require("redux"); const createStore = redux.createStore; ...
0 votes
0 answers
6 views

SyntaxError: The requested module '/node_modules/prop-types/index.js?v=61a765a5' does not provide an export named 'default' (at index.jsx:3:8)

I'm creating a Node module that uses PropTypes, but, when I install and use the module, in the browser console it says this: SyntaxError: The requested module '/node_modules/prop-types/index.js?v=...
0 votes
0 answers
27 views

Change site name [duplicate]

I can’t change the site name, I tried adding a tag <meta property="og:site_name" content="sitename"> tried schema.org <head> <script type="...
1 vote
2 answers
26 views

How to prevent scroll-to-top on certain links in React-Router with a custom ScrollToTop component

I'm using React-Router with a custom ScrollToTop component to reset the scroll position to the top of the page on navigation. However, I have a specific use case where I need the scroll position to ...
0 votes
0 answers
12 views

terser-webpack-plugin and uglifyjs-webpack-plugin

Since webpack 4 is using terser-webpack-plugin by default in production mode or when we specify -p argument which is a shortcut for specifying --optimize-minimize --define process.env.NODE_ENV="...
0 votes
0 answers
12 views

NextJS 14 not consistently loading scripts

On NextJS 14.1.3 I am seeing some strange behavior I do not understand. When I am visiting a page that loads JS from a file the application does not pull the JS every time. Like maybe doesn't load ...
1 vote
3 answers
10k views

How to render html table in react native?

In my project, I'm fetching a json response from server which is an html content. I've used react-native-render-html to render the html.But the table contents are not displaying. Is there any method ...
-1 votes
2 answers
23 views

Passport JS + React application internal 500 errro

I am creating a general chat application with react, and am stuck while trying to authenticate a user. The axios post request raises a 500 error that I cannot track anywhere. When I put in correct ...
0 votes
0 answers
37 views

typescript error, the expected values ​do not match the props

I have a function to get the card component in react: const getLeagueCardComponent = (value: ELeagueVaritions) => { if (value === ELeagueVaritions.MATCHES) { return MatchesCard } ...
-2 votes
1 answer
28 views

Custom Payment Gateway in Shopify like razorpay

I want to create Custom Payment Gateway in Shopify like razorpay. I have knowlage about remix, react, typescript and node js. Refrence:- https://github.com/RoopkamalDhindsa/shopify-extensibility-...
0 votes
0 answers
18 views

Remix - Parent loader throwing 500 and nested loader returning a redirect

Today I bumped into an unexpected behaviour from Remix and I'd like to understand if I'm missing something. I have a loader in routes/main/loader.ts and another loader in routes/main._index/loader.ts. ...
0 votes
0 answers
13 views

ReferenceError: process is not defined reactJs

I am new to react. Just trying to run application, Facing below issue showing in browser console: Error showing in browser I have tryied below solutions: react-scripts version : 5 did not worked &...

15 30 50 per page