react router v4 default page(not found page)

This is common purpose, directing unmatch request to notfound page. making this with react-router v4 looks like previous versions and I expect this sample works below. Links work fine but I expect NotFound component called only unknown url requeste...
more »

2017-03-21 15:03 (1) Answers

GET request is not working in React Component

I already imported the axios library and the React. I am making a get call in a React component, Request is proper and returning response also, it gives me this: {"functionality": [ {"category": "", "price": 2.0, "moltiplicator": 100.0, "n...
more »

2017-03-21 14:03 (1) Answers

How do I force leaflet to update the map?

I'm running into issues as I am using Leaflet together with React, the issue being that Leaflet wants to control the DOM rendering as well, as far as I've researched. Right now, the countries will correctly be colored with the specific color code co...
more »

2017-03-21 12:03 (1) Answers

Phoenix + React can't make HttpGet request

I'm using Phoenix version 1.3 with React in my application and trying to make Get request: httpGet('/api/v1/users') .then(function (data) { console.log("http get works!!!!"); }) .catch(function (error) { console.log("nope doesn't ...
more »

2017-03-21 10:03 (1) Answers

React Context and ES6 classes

If I have an ES6 class, export default class WSConn { constructor() { this.conn = null; this.event_id = null this.navigator = null; } getEventID() { return this.event_id } setEventID(event_id) { ...
more »

2017-03-21 03:03 (1) Answers

Redux- Form: Unable to Dispatch Action on Submit

I'm using redux-form in my React / Redux application, and I'm trying to figure out how to dispatch an action on submit. I have been able to trigger the handleSubmit function, and the submit function that I pass to it is executed, but the 'submitForm...
more »

2017-03-21 03:03 (1) Answers

Reactjs siblings class toggle

I dont want to use two classes How can i make the sibling box appear green when button is hover ? Currently all the boxes are hovered green. Below is the code with the snippet. Thanks for the help in advance. class Lol extends React.Compon...
more »

2017-03-20 23:03 (1) Answers

React-Router External link

Since I'm using react-router to handle my routes in a react app, I'm curious if there is a way to redirect to an external resource. Say someone hits: example.com/privacy-policy I would like it to redirect to: example.zendesk.com/hc/en-us/articles...
more »

2017-03-20 22:03 (3) Answers

Detect Active Typing in React Search Component

Title pretty much says it all. So far the best I have been able to come up with is creating this isTyping method on the search bar component like this: isTyping = debounce(() => { console.log('typing...'); const callback = () => win...
more »

2017-03-20 21:03 (0) Answers

Javascript import as

What does it mean when you import something as multiple? so for example, import { BrowserRouter as Router, Route, Link } from 'react-router-dom' This is just an example from react router and the javascript documentation only shows example of...
more »

2017-03-20 19:03 (4) Answers

react-router-redux push, state change reset

I have an application that creates a new record and redirect the history to the new record page using react-redux-router push. This redirection is made by a "smart component" inside another smart component. The state of these components is stored on...
more »

2017-03-20 18:03 (1) Answers

add active class to selected item react

I have made a react parent component and if a user clicks on one of the two options a different child component is rendered. Depending upon which option has been selected I want to add an active class. See my code below. I have taken many approach...
more »

2017-03-20 17:03 (1) Answers

`onEndReached` not fired into animated ScrollView

I'm currently trying to implement an auto-hiding header on my react-native app. Thanks to this example I managed to do so but it broke something. Indeed my onEndReached method isn't called anymore when I reach the end of the list. I also used the Ref...
more »

2017-03-20 16:03 (0) Answers

Default Route With React Router 4

fI currently have the following routes defined in my application: / /selectSteps /steps /steps/alpha /steps/beta /steps/charlie Which could also be visualised like this: - (home) - selectSteps - steps - alpha - beta -...
more »

2017-03-20 16:03 (2) Answers

How is form handling done in Reactjs

Reactjs is quite new to me but I am able to create my components and load them in the view etc. I am creating a form with react which I want to get data to bind from my api or sending data to my api. Of course, I want some user validation on my inp...
more »

2017-03-20 16:03 (2) Answers

React router not working with params

I have the following setup: <div> <Router history={browserHistory}> <Route path="/" component={NewCustomerContainer} /> <Route path="/newCustomer" component={NewCustomerContainer} /> <Route path...
more »

2017-03-20 15:03 (1) Answers

Bind object to multiple events in react

React newbie question here: I got a search form with multiple filters as checkboxes. Now in react I understand you have to bind the onChange event of the checkbox to an event handler. Since there could be more that 10 checkboxes I would like to put ...
more »

2017-03-20 14:03 (2) Answers

React Redux table update row

I'm new to react and redux. I have a container which initialize a table component with a list of items, and onclick function. In the table component I have checkbox for each row. When I click the checkbox I want to select the row (change its style ...
more »

2017-03-20 12:03 (1) Answers