Currently Im using functional component with react hooks. But I'm unable to test the useState hook completely. Consider a scenario like, in useEffect hook I'm d
const function= () => { facets = useSearchMoreFacets( variables ); }; type UseSearchMoreFacets = { facets: MappedFacet[] | undefined; };
I am building few composed charts using the Recharts library and some of the vertical labels on the YAxis are too long and are getting cut off. A picture of m
What is the correct way to describe the type of a react component in TypeScript? Say we have a function which returns a react component. The function: const ge
I have been trying to set up an ASP.NET Core + React (TypeScript) web app project in Visual Studio 2022, but couldn't succeed in doing so. There are no proper s
I am creating a doughnut chart by using chart.js with its react wrapper. It's working fine in the new project, but not able to install it in the main project. B
I am trying to upload an image with react native front end and axios to my back end. This is how pic the image const pickImage = async () => { let result
I am trying to create an addon for storybook that adds a tab to the top of the page, I have it working except that I cannot get it to render an MDX file in the
I captured an element with the useRef hook of React. if I use console.log(this.inputRef) I get: <input aria-invalid="false" autocomplete="off" class="Mui
I have a component that makes use of CSS-Modules, by means of the babel-plugin-react-css-modules plugin. At some points during the lifetime of the component I
It's usual that react-native cannot find android SDK. My problem is different... Android ✓ JDK ✖ Android Studio - Required for building and inst
I'm using primereact version 6.2.1, While using the calendar from primereact i have enabled the option for showTime. This brings up a datePicker with an overlay
I want to create a React component for my SVG icons but if I use this component several times (with different props) in another component, it always renders the
Is there any plugin that I have to install in Atom to get this type of information on hovering on variables, objects or functions somewhat like intellisense? It
Hi I have a context provider which returns like this: return ( <RepeatsSidebarContext.Provider value={{ loading,
I use express for my API. I have a folder named app and another folder named server. app is the client app, using create-react-app as boilerplate, while server
First, i have antd table and datasource from firestore with some fields and include timestamp field. my data is good running and show it in antd table, the prob
I am just learning Material UI with react. Starting with V5. I have a basic 12 column grid just to learn this. The spacing is just not working properly. It is j
I am making the interactive table using react-table on my application. My goal is to make a table that can be editable per row when clicking on a button in a ta
I'm using Formik in my application and I want to cancel changes made to a form and revert it to its initial values (this is not about clearing form after submit