during writing code for JSX file I got an error: Error: failed to process internal error: entered unreachable code: assign property in object literal is invalid
this is the onclick function export function changeColorButton() { document.getElementById("friendDiv").style.background = "grey"; } this is the output file.
I'm working on React old projects and several of them have the native structure, like: ...{ key: "render", value: function () { return React.creat
I'm aware of some of the conditional rendering methods for React components. Some of them can be found here. Using ternary operatiors, if...elses.... But I want
My data is structured like so [1]: https://i.stack.imgur.com/dWsr3.png I am trying to loop through the database and put the data from each card into props for m
Short question. I'm trying to build a theme selector for an app and was wondering how to change the :root of a css module in a press of a button in jsx.
I can't find my error in the code. Could someone explain to me. Test: Nav:' should be rendered on the path "/". The "Home" component should be rendered only on
When I try to import and use a mui icon in react, it makes the whole div dissapear, and just the background image remain, i have installed: emotion/react, emoti
With React I'm inside of one repository, and the HTML elements are loading from another repo, which I watch for using pageLoaded. Inside updateHeader there is j
I am using Tailwind CSS to style a Next.js website. I have an image element for which I am using Next.js Image element. Now I want to open a modal on top of the
Here is my TransactionContext.jsx TransactionContext.jsx:105 Uncaught (in promise) Error: No ethereum object at checkIfTransactionsExists (TransactionContext.js
my meta description tag is not showing on google result page as well as favicon. my technology stack consist of - reactjs on frontend & entity framework on
I am using Nextjs I dont really know to describe my question but here is an example. In my code, I got few const pathname = router.pathname <NavItem pathname
In tailwind, there is a feature (which I find very annoying at times) called preflight that turns most of the HTML elements to appear like normal text. And the
So I wanted to use hooks for an exercise where I have a circle follow my cursor in React ( and then see other users circles using node) so I've set a randomColo
Happy friday all, Trying to pass an image that I have imported to a react component. My React component: import React from "react"; function profile(props) {
I have a jsx script which i use for indesign scripting. The function below is used to write to a file. It works perfectly in windows. In mac it is not able to c
I just started learning ReactJS and I made a Project with .scss For some reason when I add a style in a .scss file that style also changes other components' st
Post api work postman correctly but Rect JS post not working. Console get this error "POST https://localhost:5001/api/request 400 (Bad Request)" . I tried sever
I would like to change the color of the border of the input on focus, but not sure how to achieve it. I can change the styles the component but not when focusin