Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (1739)

Results for react-testing-library

December 9th, 2023
React update component after API call

I am fairly new to React and I am having trouble with some async code. I am trying to make a call to my server for price information between two diffe...

reactjsreact-hooks
Read more
December 9th, 2023
How to add curved borders to react native

How do I create a curved linear gradient design to my page in react native, any insight would be really appreciated. I tried to require the image but ...

reactjsreact-nativelinear-gradients
Read more
December 9th, 2023
Weird React state behavior? Doing a save File or setTimeout fixes the issue?

I tried searching on google and chatGPT but I had no luck , and this is making me lose my hair. I cannot figure out why the react states are behaving ...

typescriptreactjsreact-hooksreact-typescriptstate
Read more
December 8th, 2023
The Employee object has a Department object field. How can I store a Department in an Employee using React?

How can i post employee? Maybe I'm doing something wrong? Is there another option? I don't know React at all. I just need a frontend for my applicatio...

javascriptreactjsreact-hooksreact-redux
Read more
December 9th, 2023
React Query Mutation and TypeScript error - Argument of type '{ surgeryID: any; stageTitle: any; }' is not assignable to parameter of type 'void'

I'm using react-query to fetch, and post data from my database on supabase. I created a hook for adding a record using react-query: export function us...

typescriptreactjsreact-query
Read more
December 7th, 2023
Tailwind css is not being applied - React

I am working on a react application created using Vite. I am trying to use tailwind and followed the steps mentioned in the official docs of tailwind....

typescriptreactjstailwind-cssvite
Read more
December 8th, 2023
React Redux Toolkit: Naming convention between slice and store

I hope that finally someone can answer my question ... which is more of a general "good to know" question rather than a vitally important one :-) I ca...

reactjsredux-toolkit
Read more
December 7th, 2023
Why can't I access React Context variables and states changes inside onClick function of a button in a custom Autodesk extension?

I Have a Viewer component which uses context variables and works fine. I want to implement some custom extensions to this viewer, and I placed their d...

javascriptreactjsreact-contextautodesk-forgeautodesk-viewer
Read more
December 8th, 2023
How to change the white tick color when using Material UI Checkbox (React, JS)

I'm trying to change the default white tick (not the checkbox background!) to some other color of my choice. I've found some solutions for when using ...

javascriptreactjsmaterial-uicheckboxcustomization
Read more
December 5th, 2023
react native useState update

I have this : const [debugStr, setDebugStr] = useState("This is a debug string") function debug(str){ setDebugStr(str+'\n\n'+debugStr) } functio...

react-nativereact-hooks
Read more
December 5th, 2023
React JSX iterate over array of string and print message

I have a function component as below; const MyFunctionComponent = ({status}) => { let consolidatedErrorMsg = status.errorMessage.split("-"); //['Error...

reactjsjsx
Read more
December 5th, 2023
React.memo() gave me the error (0 , _components_ComponentName_js__WEBPACK_IMPORTED_MODULE_3__.default) is not a function

The example code is here: import Button from '@mui/material/Button'; import { memo } from 'react'; function PokemonBriefCard(props) { return ( ...

reactjswebpackreact-hooks
Read more
December 5th, 2023
React: 'map' function

I'm fetching a list of objects. Using map function should display a list but there wasn't. I checked if it was saved to 'useState' via console.log(pos...

javascriptreactjs
Read more
December 6th, 2023
How to do something similar to the useOnClickOutside functionality in react-native

I want to use breakdown blocks, they don't necessarily have a text field, but they can open some content and I want to have an effect like onBlur in T...

reactjsreact-nativereact-hooks
Read more
December 5th, 2023
React function components: is this right approach to problem?

export default function loginvia(loginmethod: string) { const [state, setstate] = useState(loginmethod); function login() { body }...

javascriptreactjs
Read more
December 4th, 2023
react functional components: is this right approach to problem?

export default function loginvia(loginmethod: string) { const [state, setstate] = useState(loginmethod); function login() { body }...

javascriptreactjsreact-hooks
Read more
December 7th, 2023
Tanstack react-table cannot return tsx from cell function

just testing Tanstack react-table lib with react + Typescript, and it seams that I can't return tsx/jsx from cell function of ColumnDef: Am I missing...

typescriptreactjsreact-tabletanstack
Read more
December 9th, 2023
Why i have error on compile with react native drawer navigation?

on build i get error TypeError: Cannot read property 'isConfigured' of undefined I try watch different tutorials and use recommendations: configure ba...

reactjsreact-nativebabeljsmetro-bundler
Read more
December 4th, 2023
How to view a stored BLOB image in a React app?

My stack is Oracle DB, Node.js and React web. I have a stored image as Blob in Oracle DB. I want to view this image in a page but failed. I have the o...

node.jsoraclereactjs
Read more
December 2nd, 2023
Streaming big video files with .net backend to react frontend

as I am creating an elearning web application with frontend in React and backend in .NET Core 7.0 I have stumbled upon a difficult topic for me. Assum...

.netreactjsstreamingvideo
Read more
December 2nd, 2023
How to render a server component from a client component in react 18 - nextjs 14 app router?

According to this RFC: Client Components May not import Server Components or call server hooks/utilities, because those only work on the server. I ...

reactjsnext.jsnext.js13
Read more
December 2nd, 2023
react-query: onError. What should I use instead?

I have the same problem as here react-query: onSuccess, onError, onSettled are deprecated. What should I use instead? . And the the proposed solution ...

reactjsreact-querytanstackreact-query
Read more
December 2nd, 2023
React Hook - useEffect clarification

I am a newbie trying to understand what is going on here. Would be thankful to anyone able to explain what I am missing here. I am following an exampl...

reactjsreact-hooks
Read more
December 2nd, 2023
React State updates only from the second click event

i'm following a React course on udemy, and while doing a project to test my knowledge about state, i got into a bug i can't solve. The project is abou...

reactjsdateobjectstate
Read more
December 2nd, 2023
dispatch an action only on react component unmount

I am using multiple tabs in react-js and each tab content is a component like below profile component that contains multiple input controls. I want to...

javascriptreactjsreact-hooksreact-reduxreact-typescript
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?