reactjs
Conditionally set background color in React component with Tailwind CSS
I am trying to use a hex color code passed through props to set the background color of a div. These are one-off colors that are generated dynamically, so cannot be added as a theme extension in tailw[详细]
2022-12-07 18:41 分类:问答Best practice for making reusable generic component
I\'ve got two different variants of cards, their widths are slightly different and one contains a button at the bottom while the other doesn\'t, but their height, font family/size and overall look is[详细]
2022-12-07 18:36 分类:问答To display the data from postgraphile api into the react app
` import React, { useEffect, useState } from \'react\'; import { useQuery, gql } from \'@apollo/client\';[详细]
2022-12-07 18:36 分类:问答npm install on React project produces ERESOLVE
I had been attempting to update dependencies on an old project recently. Within my package.json file - I outline my npm and node version, as well as the dependencies I\'m using:[详细]
2022-12-07 18:35 分类:问答(ReactJS) Why do changes made in a component by its event handlers remain when the component is re-rendered?
I\'m having a problem in React where if an event handler is triggered in a component, and it changes parts of the component (like style or textContent), those changes don\'t reset/revert when the comp[详细]
2022-12-07 18:26 分类:问答React text editor with mentioned functionality
Anyone know any good re开发者_如何学运维act js text editor which have good functionality and can work with mentions too like we mention people in our chat applications?You can try looking at Remirror.[详细]
2022-12-07 18:26 分类:问答NextJS TypeScript How to define Enum for strings
In my nextjs-app I have a component, which has a prop of the type string. Now I want to define an enum, so I tried to do this:[详细]
2022-12-07 18:25 分类:问答How to move scroll Y axis regardless of device height in reactjs?
I make 1 component which has 4 sections in vertical. And if I click menu located on top I want to make scroll move to each section.[详细]
2022-12-07 18:17 分类:问答Strange behavior in reactJS
I don\'t really know how to explain my problem so I apologize in advance if my question doesn\'t make sense.[详细]
2022-12-07 18:16 分类:问答Devextreme Reactive Errors on Base Client
I want to use Devextreme with Material Ui on my Typescript React app.I f开发者_JAVA技巧ound this docs and followed steps but it doesnt work. I also installed Material Ui dependencies but i doesnt work[详细]
2022-12-07 18:09 分类:问答