Data dodania Pytanie
2017-03-06 07:03 Modify element :before CSS rules programmatically in React »
I have an element whose :before style has to be modified based on calculations. export class Content extends React.Component { render() { ...
(1) odpowiedzi
2017-03-05 18:03 React Router confusion »
New to react & react-router. I'm trying to understand this example: https://github.com/ReactTraining/react-router/blob/1.0.x/docs/API.md#compon...
(4) odpowiedzi
2017-03-05 17:03 TabContent in react-bootstrap & componentClass props »
I am trying to pass in a react component into the TabContents componentClass prop. This react component also needs to have props added to it. I am jus...
(1) odpowiedzi
2017-03-05 08:03 What's the advantage of using $splice (from immutability-helper) over filter to remove an item from an array in React? »
I'm using immutability-helper for doing CRUD operations on state data and want to know if I should always use $splice for removing data or is it ok to...
(1) odpowiedzi
2017-03-04 22:03 How do I return jsx from an outside function with callback? »
I am trying to return jsx from outside my render method. It works when there is no api request, but as soon as I add the request and add a callback I ...
(2) odpowiedzi
2017-03-04 15:03 return html for every key in object »
I do apologize in advance I'm a JS/ReactJS newbie and I have had trouble phrasing the question, so if this is already answered somewhere I am sorry. ...
(3) odpowiedzi
2017-03-04 08:03 Why calling setState method doesn't mutate the state immediately? »
Ok, i'll try and make this quick because it SHOULD be an easy fix... I've read a bunch of similar questions, and the answer seems to be quite obvious...
(2) odpowiedzi
2017-03-03 18:03 React-select refresh options list »
I have an app using React + Reflux and I have a react-select on the page. The only issue I have, is that I need to filter the choices on the 2nd sele...
(1) odpowiedzi
2017-03-03 12:03 How to do multiple if else statements in React? »
So I am trying to create an if else statement similar too the following in React... (where aNumber is any number) if(aNumber < 5){ show a pic...
(4) odpowiedzi
2017-03-03 10:03 What's the traditional way to build a RESTful App via Laravel? »
I'm going to build my first REST app via Laravel and a client side framework which I'm not sure yet (probably React or Vue.js). I did some research a...
(3) odpowiedzi
2017-03-03 06:03 React performance: anonymous function vs named function vs method »
I would like to know if, in React.js, there is a performance difference between declaring an anonymous function, a named function, or a method within ...
(2) odpowiedzi
2017-03-03 05:03 Appending data in nested reducer »
My goal here is to make reducer handle nested data Im quite confused here, as you can see on the next state object after I append an additional dat...
(1) odpowiedzi
2017-03-02 23:03 In a react app, where is the best place to kick off the initial API service call for data load? »
In a react app, where should the initial API service calls live? Should it live in a component tied to a feature or a separate service component? How...
(1) odpowiedzi
2017-03-02 23:03 Unexpected token with Webpack and React »
I'm new to TypeScript and relatively new to React and just trying to follow the React & Webpack tutorial. With some searching I've managed to reso...
(1) odpowiedzi
2017-03-02 16:03 React onChange is swallowing my decimal when using parseFloat »
I have a simple onChange which takes the user's input pareses it and sets the state to render. Here is the code. import React, { Component } from '...
(4) odpowiedzi
2017-03-01 12:03 React Styled Components - How to access raw html »
I have a ref on a component I am converting over to a styled component in my app. The ref is used to access the offsetHeight and scrollHeight properti...
(2) odpowiedzi
2017-03-01 08:03 In React-Router v3, must all routes be nested within a <Route> with path="/"? »
I ask this because I want to know if this (below) is possible and if so how should my pages look to have this work correctly? <Router history={bro...
(3) odpowiedzi
2017-03-01 01:03 React: Are classes without state still considered stateless/pure? »
I've been refactoring my app to make more components stateless/pure components; i.e., they're just functions. However, I noticed that some components ...
(1) odpowiedzi
2017-02-28 18:02 MoonMail-UI cannot build properly using reactjs / web-pack »
node -v: v.4.4.5 npm -v: 4.3.0 os: windows 10 Steps to reproduce the problem: git clone git@github.com:microapps/MoonMail-UI.git cd m...
(1) odpowiedzi
2017-02-28 01:02 Is it against redux philosophy to copy redux state to local state? »
import React, { Component } from 'react' import _ from 'lodash' import { PageHeader, Row, Col, FormGroup, ControlLabel, Button, FormControl, Panel } f...
(3) odpowiedzi
2017-02-28 00:02 List element value returns wrong values when accessing attribute »
I have a React component that I am trying to implement so that it can pass the particular value of the list item that a user clicks to a handle method...
(3) odpowiedzi
2017-02-27 22:02 Webpack code splitting, System.import route not found if imported from separate file »
The PlainRoute Router logic works perfectly when implemented as follows ... const componentRoutes = { component : Home, path : '/', in...
(1) odpowiedzi
2017-02-27 12:02 Design pattern for working with Ajax data. What is the right way? »
I am developing a react app where I make intensive use of data that I get from AJAX requests. Let's say I can retrieve data at myserver.com/people.jso...
(3) odpowiedzi
2017-02-27 06:02 How to dispatch actions on location change with react router v4 »
I am using react-router-4.0.0-beta.4 with redux, I am trying to figure out the best way to dispatch actions on route change. I see that a few versions...
(2) odpowiedzi
2017-02-26 16:02 Redux action not getting called the second time »
I have two redux actions which call as follows. export function action1(params) { //This line is always called. return (dispatch) => { //T...
(1) odpowiedzi
2017-02-26 01:02 Wrapping a react-router Link in an html button »
Using suggested method: This is the result: A link in the button, Code in between comment lines I was wondering if their is a way to wrap a Link elem...
(2) odpowiedzi
2017-02-26 00:02 Why is the child component not updating with state of parent? »
I am passing my parent state to my child component, but when I print props in the child component I get the previous state of the parent component ins...
(1) odpowiedzi
2017-02-25 19:02 React Native conditionally render part of view while input is focused »
I have the following scenario. function MyComponent() { return ( <View> <TextInput ref={ref => (this.input = ref)} style={sty...
(2) odpowiedzi
2017-02-25 15:02 Uncaught Error: react-apollo only supports a query, subscription, or a mutation per HOC »
I'm trying to wrap my Chat component with two queries and one mutation using compose. However, I'm still getting the following error in the console: ...
(1) odpowiedzi
2017-02-25 00:02 Webpack: How can I combine two completely separate bundles using dynamic bundling »
I have spent a lot of time looking into this, but to no avail. I am aware of how code splitting and dynamic bundling works in Webpack using the impor...
(1) odpowiedzi
2017-02-24 20:02 Redux store double nesting »
Im getting double nested state after api call. Here is it. Screenshot from redux devtools Here are my actions export const getUserSuccess = use...
(3) odpowiedzi
2017-02-24 20:02 The previously configured ChromeDriver service is still running / Running Webdriver tests with Grunt »
Hi I am trying to write mocha tests for my react application that leverage selenium-webdriver. I have a few questions but help either of them would h...
(0) odpowiedzi
2017-02-24 08:02 How to have proper bidirectional binding on ClojureScript with Reagent? »
I'm writing a wrapper for React Toolbox for ClojureScript/Reagent called Reagent Toolbox. In React Toolbox, there's an input component that's used lik...
(1) odpowiedzi
2017-02-23 21:02 React Native Server - Is Custom Routes / Endpoints possible? »
I'm new to mobile development and I know there are some fundamentally different things than the web, so I'm trying to understand RN's server. How does...
(1) odpowiedzi
2017-02-23 19:02 How to manage AngularJS http requests calls »
I have a piece of code that sends a double HTTP request.I want to first make a request for authentication and if true execute the next statement (th...
(3) odpowiedzi