Data dodania Pytanie
2017-01-28 22:01 Why isn't there a "class" prop for React? »
In React.DOM.Props from purescript-react, DOM node attributes are nearly exhaustively listed there, except for a class attribute (I'd suspect it to be...
(1) odpowiedzi
2017-01-28 20:01 ReactJS access to Virtual DOM reconciliation result »
I am updating a part of a page via a standard this.setState mechanism. I want to grab a hold of a elements that has been changed on a web page and pro...
(10) odpowiedzi
2017-01-28 15:01 React + Redux Immutable array Reducer »
I would need some help on Redux immutable array state. I am getting array of objects from actions and passing it to reducer. In my reducer file I ...
(2) odpowiedzi
2017-01-27 20:01 Is it possible to run Jest Snapshot Test with React v0.14.5? »
Im trying to run a simple jest snapshot test, but to use that, is necessary to have 'react-test-renderer'. But when I try to install the oldest availa...
(0) odpowiedzi
2017-01-27 17:01 create-react-app, code splitting and jest »
I'm developing an application using create-react-app and I'm trying to split my code into modules implementing the way described in the react-router h...
(2) odpowiedzi
2017-01-27 16:01 reactjs: Uncaught TypeError: Cannot read property 'value' of undefined »
I am getting error after taking a react render from something like this return ( React.createElement('form', { ...
(1) odpowiedzi
2017-01-26 20:01 How to force an update from inside mapStateToProps? »
I'm talking about the mapStateToProps argument of connect. One of my components has a property called rules which is an array of functions. In mapSta...
(2) odpowiedzi
2017-01-26 12:01 Updates nested value in React State »
I am using React/Redux for my web-app and I have the Description Class where user can edit description. Props description and propertyTypes are coming...
(2) odpowiedzi
2017-01-26 07:01 React Router and History »
Hello I'm really new to react and I'm watching this wonderful youtube ReactJs tutorial from Learncode.academy. This tutorial is from last year I don't...
(1) odpowiedzi
2017-01-25 14:01 React fade in element »
I have a Basket component which needs to toggle a BasketContents component when clicked on. This works: constructor() { super(); this.state =...
(3) odpowiedzi
2017-01-25 06:01 Adding ClojureScript to an existing codebase »
I have a reasonably large React + Relay codebase that is being built using Webpack. Is it possible to gradually introduce ClojureScript + Reagent into...
(0) odpowiedzi
2017-01-25 05:01 what is this difference between this flux action and this function call? »
I could a have a flux action like this: {type: 'KILL', payload: {target: 'ogre'}} But I am not seeing what the difference is between having a meth...
(1) odpowiedzi
2017-01-24 21:01 is it possible to use redux and reflux together for a react app? »
So I have an login that is built using redux and a shopping cart built using reflux. is it possible to combine the two safely or do I have to convert ...
(0) odpowiedzi
2017-01-24 19:01 ReactJS - Component not passing this.state.object properly to another component »
I have a User component: import React, { Component } from 'react'; class User extends Component { render() { return( <div> ...
(2) odpowiedzi
2017-01-24 15:01 Babel plugin doesn't run as expected - output is not always shown »
I have made a babel plugin that should find all functions with a specific name in order to get the input parameters. However, it doesn't run as I expe...
(1) odpowiedzi
2017-01-24 09:01 HTML textarea inside ReactJS component can't be programmatically selected without setTimeout? »
I have a ReactJS component with an HTML <textarea> inside. The <textarea> has the value attribute pre-populated (see below ... I'm genera...
(3) odpowiedzi
2017-01-23 18:01 Convert this function to a stateless react component »
I have this function that dims the trailing zero of a number, after the '.' ex. 123.456000 -> 123.456000 100.0000 -> 100.0000 456.999990 -> 456.9...
(1) odpowiedzi
2017-01-23 15:01 How does Animated.Component / createAnimatedComponent(Component) differ from Component? »
We are trying to figure out cause of following issue from styled-components project: https://github.com/styled-components/styled-components/issues/389...
(0) odpowiedzi
2017-01-23 04:01 'Warning: setState(...): Cannot update during an existing state transition' after adding react-native-router-flux Action() »
I have a new React Native app - using redux, reduxThunk and react-native-router I have a listItem component which triggers a redux action addBrandFor...
(3) odpowiedzi
2017-01-22 21:01 Change the children of a component dynamically in React »
Is it a way to change the children of a component dynamically? I have a component which wraps other components, recursively walks the children, what I...
(3) odpowiedzi
2017-01-22 21:01 How to render React components only once on startup? »
I've been reading docs about performance but I can't find the answer to my question... I have a bunch of buttons on my application that will render b...
(1) odpowiedzi
2017-01-22 15:01 How to minimize the if statement in javascript »
I have a very long if-conditional statement. How can I minimize it? Here is my code, if(this.refs.category.value.trim() != "" && this...
(3) odpowiedzi
2017-01-21 17:01 Login via Google in React application using Passportjs »
I`m working on project that contains 2 apps: web-site and chrome extension. Web-site technologies stack: Nodejs, Mongoose, React. For now, I`m trying...
(0) odpowiedzi
2017-01-21 16:01 What's the use of mapDispatchToProps when we can just use this.props.dispatch to dispatch action »
I've been using @connect annotation for some time and decide to switch to mapStateToProps and mapDispatchToProps. I can mapStateToProps to map store ...
(1) odpowiedzi
2017-01-21 05:01 Which grammar is better for Component of React.js »
I have a question when learning React.js. According to the official documents or some textbooks, I found there are two ways of express react code. Bu...
(4) odpowiedzi
2017-01-20 22:01 Is React ref Order guaranteed? »
I'm constructing an element with an unknown number of children using React and I need a reference to each. Consider the following code: class It...
(1) odpowiedzi
2017-01-20 22:01 Meaning of the word "Type" in "Reconciliation Tradeoffs" in react reconciliation documentation »
In the React Documentation: The algorithm will not try to match subtrees of different component types. The word "type" can often refer to many t...
(0) odpowiedzi
2017-01-20 18:01 React with Ecmascript6 classes problems using Chrome »
I'moving to React ES6 as the recommended way to write React classes. I'm starting from a simple example: import React from 'react'; import ReactDOM f...
(3) odpowiedzi
2017-01-20 17:01 Difference between import React and import { Component } syntax »
Say, we are using React with ES6. We import React and Component as import React from 'react' import { Component } from 'react' Why the syntax diffe...
(3) odpowiedzi
2017-01-19 21:01 Animate Gradient Color React Native »
I'm trying to create a gradient in react native that will start as one color when the app opens, and then gradually change into another color every 30...
(2) odpowiedzi
2017-01-19 18:01 Webpack 2 Code Spliting with Server Side Rendering and React-Router-v4 »
Using webpack2.2.0-rc1 and react routerv4, and using this gist to make code spliting to work, which states the following function asyncComponent(getC...
(1) odpowiedzi
2017-01-19 10:01 Reactjs - Higher Order Component unmount not working correctly »
I created a HOC to listen for clicks outside its wrapped component, so that the wrapped component can listen and react as needed. The HOC looks like ...
(2) odpowiedzi
2017-01-19 10:01 What are the best practices when doing asynchronous calls in a Flux architecture with React? »
I have been working with React/Redux for about two years, but I am currently involved in a React application that uses Facebook's Flux instead of Redu...
(1) odpowiedzi
2017-01-18 23:01 React-router v4 - display current page »
I have a main component, App that holds all my Match components. I'd like to be able to display the current page at the top (in header, for example) b...
(1) odpowiedzi
2017-01-18 22:01 React.createElement: type is invalid -- expected a string, but got: object »
I've just upgraded to Webpack 2.2 today and have been reading through their guides, which are still a work in progress it seems. I am having difficul...
(1) odpowiedzi