tagged [reactjs]
What does the error "JSX element type '...' does not have any construct or call signatures" mean?
What does the error "JSX element type '...' does not have any construct or call signatures" mean? I wrote some code: I'm getting an error: > JSX element type `Elem` does not have any construct or call...
- Modified
- 29 Mar at 07:20
How can I render HTML from another file in a React component?
How can I render HTML from another file in a React component? Is it possible to render HTML from another file in a React component? I have tried the following, but it does not work: ``` var React = re...
- Modified
- 28 Nov at 17:11
How to use componentWillMount() in React Hooks?
How to use componentWillMount() in React Hooks? In the official docs of React it mentions - > If you’re familiar with React class lifecycle methods, you can think of useEffect Hook as componentDidMo...
- Modified
- 25 Nov at 04:13
Why use Redux over Facebook Flux?
Why use Redux over Facebook Flux? I've read [this answer](https://stackoverflow.com/questions/32021763/what-could-be-the-downsides-of-using-redux-instead-of-flux), [reducing boilerplate](http://redux....
- Modified
- 5 Jul at 03:59
Creating custom function in React component
Creating custom function in React component I have a React component `componentDidMount` and `onClick` methods partially use the same code, except for slight change in parameters. Is it possible to cr...
- Modified
- 29 Nov at 13:30
How to run "brew" command in windows..?
How to run "brew" command in windows..? It shows "" in windows command prompt. [](https://i.stack.imgur.com/suFT2.png) I am trying to install [codeigniter-reactjs-example](https://github.com/makasimen...
- Modified
- 3 Jul at 13:5
How to set default Checked in checkbox ReactJS?
How to set default Checked in checkbox ReactJS? I'm having trouble to update the checkbox state after it's assigned with default value `checked="checked"` in React. After assigning `checked="checked"`...
Is it safe to store a JWT in localStorage with ReactJS?
Is it safe to store a JWT in localStorage with ReactJS? I'm currently building a single page application using ReactJS. I read that one of the reasons for not using `localStorage` is because of XSS vu...
- Modified
- 11 Mar at 17:9
What is the difference between React Native and React?
What is the difference between React Native and React? I have started to learn out of curiosity and wanted to know the difference between React and React Native - though could not find a satisfactory ...
- Modified
- 21 Jan at 12:36
Detect previous path in react router?
Detect previous path in react router? I am using react router. I want to detect the previous page (within the same app) from where I am coming from. I have the router in my context. But, I don't see a...
- Modified
- 2 Sep at 09:25
Changing font family of all MUI components
Changing font family of all MUI components Can we change the font family of MUI components with less code. I have tried many ways but still, I can't able to do it. I have to change the font family ind...
- Modified
- 10 Nov at 05:24
Updating an object with setState in React
Updating an object with setState in React Is it at all possible to update object's properties with `setState`? Something like: I have tried: and this: The first results in a syntax error and the secon...
Module not found: Can't resolve 'fs' in Next.js application
Module not found: Can't resolve 'fs' in Next.js application Unable to identify what's happening in my next.js app. As is a default file system module of nodejs. It is giving the error of . [](https://...
- Modified
- 20 Nov at 08:34
How to manually trigger click event in ReactJS?
How to manually trigger click event in ReactJS? How can I manually trigger a click event in ? When a user clicks on element1, I want to automatically trigger a click on the `input` tag. ```
Detect Route Change with react-router
Detect Route Change with react-router I have to implement some business logic depending on browsing history. What I want to do is something like this: Is there any way to receive a callback from react...
- Modified
- 21 Nov at 16:55
How to handle the `onKeyPress` event in ReactJS?
How to handle the `onKeyPress` event in ReactJS? How can I make the `onKeyPress` event work in ReactJS? It should alert when `enter (keyCode=13)` is pressed. ``` var Test = React.createClass({ add: ...
- Modified
- 7 Apr at 18:15
How to get values from input types using this.refs in reactjs?
How to get values from input types using this.refs in reactjs? Not able to get values of input type using this.refs... how to get that values from input type ``` export class BusinessDetailsForm exten...
- Modified
- 15 May at 11:5
How do I hide an API key in Create React App?
How do I hide an API key in Create React App? I made a weather app in [Create React App](https://create-react-app.dev/docs/getting-started/) (`create-react-app`). How do I hide the API key so that I c...
- Modified
- 17 Jan at 16:37
React.useState does not reload state from props
React.useState does not reload state from props I'm expecting state to reload on props change, but this does not work and `user` variable is not updated on next `useState` call, what is wrong? [codepe...
- Modified
- 14 Nov at 02:31
React-Native another VirtualizedList-backed container
React-Native another VirtualizedList-backed container After upgrading to react-native 0.61 i get a lot of warnings like that: What is the other `VirtualizedList-backed container` that i should use, an...
- Modified
- 4 Oct at 22:12
create-react-app: how to use https instead of http?
create-react-app: how to use https instead of http? I was wondering if anyone knows how to use https on dev for the 'create-react-app' environment. I can't see anything about that in the README or qui...
- Modified
- 15 Jun at 18:23
Formik - How to reset form after confirmation
Formik - How to reset form after confirmation In [Formik](https://github.com/jaredpalmer/formik), how to make the Reset button reset the form only ? My code below still resets the form even when you c...
How to change default constructor?
How to change default constructor? ServiceStack generates typescript code based on my backend api classes. Those typescript classes have default constructors, which looks like this. Because of `Object...
- Modified
- 27 Aug at 14:17
MUI customize button color?
MUI customize button color? I am struggling to modify button colors in MUI next (v1). How would I set muitheme to behave similarity to bootstrap, so I could just use "btn-danger" for red, "btn-success...
- Modified
- 4 Nov at 08:8
Get form data in React
Get form data in React I have a simple form in my `render` function, like so: ``` render : function() { return ( Login ); }, handleLogin: funct
- Modified
- 14 Feb at 02:19