Data dodania Pytanie
2017-02-02 15:02 The best place to store logic in React app? »
I have two components. e.g. Dashboard and Card Dashboard: render() { const elements = this.props.cards.map((card, key) => { r...
(2) odpowiedzi
2017-02-02 14:02 CSS keyframes Animation stalls ajax success call if scroll wheel is spammed »
I have an AJAX query that usually takes about 200ms to perform. While waiting for the result, I play a little animation of a spinning wheel. The anim...
(0) odpowiedzi
2017-02-02 12:02 How I could get the index.android.bundle? »
I have used following command to run but index.android.bundle not getting. react-native run-android react-native start http://localhost:8081/index...
(2) odpowiedzi
2017-02-02 11:02 How to access state from callback function »
I have a component in react native: export default class Screen extends Component { constructor(props){ super(props); this.state = { ...
(1) odpowiedzi
2017-02-01 18:02 Why ReactJS components must act like pure functions? »
the documentation says All React components must act like pure functions with respect to their props. https://facebook.github.io/react/docs/components...
(4) odpowiedzi
2017-02-01 18:02 Using an external React component on Rails application »
I am trying to use the rc-slider React component on a existing Rails application that is using react-rails gem and it already have some other componen...
(1) odpowiedzi
2017-02-01 15:02 React (Preact) renders content twice »
On an editable pre-element I run a onKeyDown script only when the enter key is pressed to avoid unwanted HTML-elements in the text. render({}, {conte...
(1) odpowiedzi
2017-02-01 09:02 Object Destructuring Assignment Behaving Weirdly in Constructor »
I'm using electron and React and I have some code that looks like this: constructor(props) { super(props); const { arr } = this.props; ipcRende...
(1) odpowiedzi
2017-01-31 22:01 How does one type @connect correctly when using React and TypeScript? »
I've been struggling with this for the longest time. Sat down today dedicated to get rid of any anys left, but didn't manage to. import * as React fr...
(1) odpowiedzi
2017-01-31 17:01 Access JSON file in React without importing it »
I have been importing data in the form of a JSON file into a React component: import data from '../../public/json/data.json'; I am using the create-...
(1) odpowiedzi
2017-01-31 07:01 Why do we need Express server when we have a backend ready already »
I am quite new to javascript and web application environment. I have seen a react web application project which had a public directory, a client direc...
(2) odpowiedzi
2017-01-30 11:01 pass "key" param to react component »
I am trying to pass a parameter with name "key" to a react component and it does not work. If i use "keyy" instead of "key" then it works. It seems f...
(3) odpowiedzi
2017-01-30 10:01 Which is better CRUD coding style using Redux? »
I have a simple question about coding style for single page application. My front end is using React Redux For example I have a standard CRUD page wh...
(3) odpowiedzi
2017-01-30 03:01 Webpack: How to compile, write on disk and serve static content (js/css) using webpack-dev-server »
I want to build my js/css code, write it on disk and serve it using webpack-dev-server in a single command. I don't want to set-up another server for ...
(2) odpowiedzi
2017-01-30 01:01 lost in the mist: actions in redux/reactjs »
I am trying to wrap my head around both the theory and practice of implementing actions in reactjs...and I'm stuck! ok - let's start with a thumbnail ...
(1) odpowiedzi
2017-01-29 21:01 Getting Destructuring error with Rest operator? »
I assume this must be destructuring using a rest statement? what exactly is this doing? The problem is, I get an error in WebStorm: const cars = {....
(1) odpowiedzi
2017-01-29 18:01 React Router and route params »
I've had a browse and I couldn't find anything solving this for me. I've got a problem with a routing requirement that I've got within my SPA. There i...
(1) odpowiedzi
2017-01-29 14:01 fom submit after preventDefault() when using react »
What am doing here is on clicking a link verify if all fields are filled if filled submit form as usual else will show some errors. But how can I cont...
(3) odpowiedzi
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