So first of all, because I am using a ChartJS I need to generate an array of months. The creation is looking like this : const [generatedMonths, setGeneratedMon
I have a demo here I'm just trying to create a simple app where I pass data to a component and then display that data So I have the data which is an array of ob
I was using react hooks face this error blew. import React, {useState, useEffect} from 'react'; import sanityClient from '../client.js' export default function
Is it possible to change button text that is created using array. If it is possible, what should I do with the onClick function in the button. Here is the sampl
I am new in studying Redux. Then I know the existence about Redux-toolkit. My question is which should I use? Can Redux-toolkit replace Redux
I am using react hook form to make a login form .I am trying get the input value of email, after i click on reset button. so i used useRef. But useRef is not se
Instead of using div:first-child or div:nth-of-type(2) I would like to say Row or ColSm3 like we usually do in normal CSS, Is it possible to target a styled com
I have a demo here It's a cart with products that can be added to a cart and show a total. I'm using context for the state as the products and cart are differen
I upgraded React v16.14 app to run with Webpack v5 from v4. I'm seeing hundreds of warnings with .scss files like below even though the app seems to run fine. I
I tried to set a image to all pages as background. I have tried to set the style of the body tag of index.html <body style="background-image: url(%PUBLIC_URL
i've tried many times when installing create react app but it always error connection, but my internet connection is really stable npx create-react-app my-app
I have a main component that passes down multiple refs to Panels component like so import { useRef } from 'react'; import Panels from './Panels'; export const
I want to add tailwind to storybook. So that Stories will render just like it will render on web. I used create-react-app project-name --template typescript to
I try to deploy my react app (craco) on dokku and I get this strange error on build: remote: -----> Build remote: Running build remote: remote:
I want to assign the username I get from a TextInput to a username variable via a button and output it in the text below. Meaning, if the user enters the userna
I am attempting to grab the authorization code appended to the redirect uri using the OAuth2.0 Web Server Flow for Web App Integration seen here: https://help.s
I have the following code snippet. Why is my limit always 0 in my fetchData? If I were to console.log(limit) outside of this function it has the correct number.
I'm currently porting an old MVC website with Razor pages. I now want to use react with style compoents. Now I am using react on the front end, I want to know w
I'm following this Chakra Doc on how to create a drawer slideout menu: https://chakra-ui.com/docs/overlay/drawer using the following component: import React fro
Here I have use case to have a modal on the page header. since the page header has position:fixed bootstrap modal backdrop is overlayed at the top so unable to