Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

I have customized the fetch in a Next.js app to get the token whenever a request is made. This is the function: import { getNewAccessToken } from "./getNewAccessToken"; import { cookies } ...
Saikot Roy's user avatar
1 vote
1 answer
139 views

I can't copy the whole code here. So I have a react component in which I am using 2 blocks of code (dashboard and details). I am conditionally rendering both block. Block 1 contains an AG grid react. ...
SAURABH MAURYA's user avatar
1 vote
1 answer
34 views

I have a vuetify select where I want to restrict the text when too many elements are selected. So I used conditional rendering to just display what I want: <v-col cols="auto"> <v-...
GniLudio's user avatar
0 votes
1 answer
50 views

I'm building a Vue.js application that requires conditional rendering of multiple tables based on certain conditions. I have a set of flags that determine which tables should be rendered, and I'm ...
Khan's user avatar
  • 9
-1 votes
2 answers
95 views

I am working on a React project where I have two components, UserRules (Component A) and UserEmail (Component B). I need to pass the value of a state variable selectedVoucherOption from Component A to ...
flash's user avatar
  • 1,517
1 vote
1 answer
37 views

I've been working on my first React Project, a CV application where users can input their information and generate a CV. After the user submits the form, the form should disappear and the relevant ...
Aviral Mehrotra's user avatar
-1 votes
1 answer
270 views

I'm using my components as below and I want to check if one of inner components is returning anything or not to make style decisions based on that. <Grid xs={12} md={ Bar() ? 8 : 12 }> <Foo ...
Rocky's user avatar
  • 117
0 votes
0 answers
76 views

I am working on a React component where I need to select an item from a list and update the state with the selected item's ID. I then want to conditionally render the selected item. However, I am ...
Deivid Micael's user avatar
0 votes
1 answer
127 views

I'm using a custom hook to render different elements on the page based on the screen size. Hovewer during rendering there is a delay because of the useEffect hook. Elements that are rendered ...
ledmatrix's user avatar
0 votes
1 answer
65 views

In my React app, I am trying to create logic for how my input elements should be displayed. I used the window.innerWidth for different screen sizes, as is seen below: <div className='Trends'> ...
Anthony Onah's user avatar
0 votes
2 answers
42 views

This is for an interactive bible. In the following code I have buttons that are being conditionally rendered based upon the buttons I previously clicked. The code calls an API to retrieve the data. ...
Herbie's user avatar
  • 1
1 vote
2 answers
80 views

Creating tabs always works well in React and this is working when opening in a browser, but the 'tabActive' styling is not removed when another tab gets clicked. 'tabActive' styling is getting applied ...
DougFrancis's user avatar
2 votes
1 answer
2k views

I am using Astro and TypeScript. How do I add conditionally an HTML attribute rel="noreferrer" to an element in Astro? So when targetBlank = false it doesn't render rel attribute in the dom? ...
meez's user avatar
  • 4,888
0 votes
1 answer
85 views

I want to conditionally render jsx in my AuthForm component and i'm having trouble specifically with the 'isPasscodeEntry' scenario. My AuthForm component conditionally renders an input form based on ...
codereyes's user avatar
0 votes
1 answer
41 views

I got a total of 3 conditions. When I add the class possible-links-cont-star-btn with the x.feature condition I want to remove the all other classes element have. <Link key={i} onClick={() =>...
Cem's user avatar
  • 13
0 votes
1 answer
97 views

I have this conditional rendering {livematchcard.event.status_name != "Ολοκληρώθηκε" ? "Τελικό" : (livematchcard.event.sport_id == 4 ? ( ...
agrotis2231's user avatar
0 votes
2 answers
1k views

Coming from angular, i would like to know what's wrong with this code. I've been told that i should use useMemo (for the fitlering part) and useRef (to store products). I know how to do that, but i ...
stackoverflower's user avatar
1 vote
0 answers
60 views

So what i am trying to do is that I am doing conditional rendering of my AccountStack and AuthStack on my AccountTab, now my AuthStack contains screens Welcome, Login and Otp and after entering the ...
Faiz Khan's user avatar
0 votes
1 answer
43 views

I had the below Reactjs snippet in our UI, which works fine now. <Select label="Send To" labelId="send-to-label" ...
user21996911's user avatar
0 votes
1 answer
393 views

I am working on a project, where I am using conditional rendering. I am not sure what the cause but I am not getting data from api after refreshing the page. Image of the page on first load Image ...
Shivam Dubey's user avatar
0 votes
0 answers
21 views

I am basically creating an online game .I have set up an Express server which till now served static webpages . Now , I have static webpage which has two buttons 'Create Game' and 'Join Game'. Now, ...
Metronome's user avatar
1 vote
1 answer
28 views

I'm building a portfolio with VueJs and would display projects with selected tags. Here is my code: <script lang="ts"> import projectsData from "../projects.json" export ...
Saantuu's user avatar
  • 31
0 votes
1 answer
165 views

I am trying to render custom JSX snippets based on the objects stored in an array in using react nestable. But instead of the JSX snippet, [object Object] gets rendered on the screen. Here is my code /...
Siddhartha Sahu's user avatar
0 votes
2 answers
52 views

import React, { useState } from 'react' const LoginPage = () => { const [isLogin, setIsLogin] = useState(true); const [isSignUp, setIsSignUp] = useState(true); const [isAdmin, ...
Kittu Kittu's user avatar
2 votes
0 answers
188 views

I have a React application in which after clicking on the buttons I change the categories and each category has its own layout with text and images. The problem is that I conditionally render this ...
Martin Wsc's user avatar

1
2 3 4 5
9