32 questions
Filter
- 1 votes1 answers44 views
How to pass state between siblings in React
hi i am new to react redux i am working on a project and in that project i have a checkbox menu when user select anything from that menu then the state is update ...
- 1 votes1 answers15 views
Can you get a server-side nodejs application to refresh the state on the front-end of React?
I am updating the database in the backend using node js, and I want to tell the front-end (React) to update the state (so that the page does not refresh completely). ...
- 0 votes1 answers20 views
Best way to go for JS.
Hello everyone. Please, is it okay to start learning Javascript with framework or I should just start with Vanilla?
- 1 votes1 answers33 views
React functional component vs class component
Can someone explain which one is more useful to use, and why??
- 2 votes0 answers57 views
Why onContextMenu event not working on IOS devices?
I have a* React App that relies on the onContextMenu event, on IOS devices it used to convert the right click to a long press event but ever since I updated to IOS ...
- 0 votes0 answers27 views
Semantic UI react showing as regular HTML
I am decently new to react and am now trying to add semantic ui to my website. Every time I try to load the components they show as regular html instead of how semantic ...
- 1 votes1 answers2.3K views
How to update parent state from child component in React?
I'm new to React and a little confused about updating the parent component's state from its children. Any suggestions?
- 7 votes1 answers4.9K views
How to deploy a React basic Application in Apache Server?
I've created a basic Create App where the basic React image is showing by using npx create-react-app my-app. Its created in local and runs fine. I want to run it ...
- 0 votes0 answers25 views
Why the inputbox cannot to typing?
Why the input cannot do typing, anyone, please help me. this is the few code. Component import React, { Component } from 'react'; import { View} from 'react-native'; import ...
- 0 votes0 answers1.4K views
Testing formik onSubmit function using jest does not work
How to test formik onSubmit function? My onSubmit handler (mockFunction) is executed after a little delay. If I put a console.log or expect statement immediately ...
- 0 votes0 answers4 views
React added to existing webpage does not render components from multiple files
I want to add some functionality to my existing website with React. I followed this tutorial. I came to a point where I wanted to separate classes from a single ...
- 0 votes0 answers16 views
React - Cannot set property of undefined
I have a React component that uses querySelectorAll to get the value of elements on the page then renders them in the component. With the code below, I am getting ...
- 1 votes1 answers532 views
TypeError: Cannot read property 'then' of undefined - Trying to fetch data in pure javascript
I'm trying to fetch data using pure javascript from a socket endpoint with socket.io. The idea is to use a socket server between the clients and my API in the localhost ...
- 0 votes0 answers15 views
Can we implement Sass in Semantic UI??
Regarding Semantic UI and Sass, as stated in Coderwall; Notable drawbacks of Semantic UI is stated as Some Cons No image slider No thumbnail classes No visibility ...
- 0 votes0 answers14 views
Change component with props in react router
I have a login function that gets token from API. After a successful POST request, I would like to change the component with props. I know how to do it, which reacts ...
- 0 votes0 answers8 views
Dynamically create new component without using an array or setstate
This may be incredibly simple, but for the life of me, I can't figure out how to achieve it. I have a notification system working through WebSockets, and every ...
- 0 votes0 answers36 views
componentDidUpdate Conversion to Hooks
I want to rewrite this life cycle method into a hook: componentDidUpdate = prevProps => { const { notifications, popNotification } = this.props; if (pr...
- 0 votes0 answers18 views
Good Implementation : Isomorphic react app + Python backend
What is the best way to implement an isomorphic react app using webpack with python as a backend to serve Following features are required to be implemented React ...
- 0 votes0 answers36 views
how to set React.useState based on URL
I am trying to set the following to different numbers based on the page the user is on using window.location.path const [value, setValue] = React.useState(1); I ...
- 2 votes0 answers18 views
Programmatically navigate using react router
With react-router, I can use the Link element to create links that are natively handled by react-router. I see internally it calls this.context.transitionTo(...). I ...