Data dodania Pytanie
2017-02-14 23:02 Send both 404 status and redirect to 404 component in react-router »
I have a react-router 3.0.0 setup with a NotFound component I'm showing as a fallback: <Route component={NotFound} path="*"/> However this re...
(0) odpowiedzi
2017-02-14 22:02 .ejs React Native error »
I'm importing redux into my RN project and I noticed one of the ducks requires react-intl as well as one file is written in .ejs There is a line in t...
(0) odpowiedzi
2017-02-14 17:02 Avoiding inline functions in React: How to bind functions with arguments? »
I'm trying to follow the no-bind rule for React using the pattern that they have recommended with ES6 classes: class Foo extends React.Component { ...
(4) odpowiedzi
2017-02-14 04:02 Searching in React when user stops typing »
I need to perform a Search when user stops typing.I know I am supposed to use setTimeout() . But with Reactjs I cant find how it works. Can someone pl...
(3) odpowiedzi
2017-02-13 22:02 ReactJS best practice with complex data structures »
I am integrating React into an existing app. This app is data intensive and the data structure is pretty complicated which makes it a bit hard for me ...
(1) odpowiedzi
2017-02-13 21:02 How can I pass confirmation_token for devise with React and Rails »
The application I'm working on is on React and Rails. I'm using devise and I wanted to add a button to resend the confirmation link. I added it in my...
(0) odpowiedzi
2017-02-13 21:02 How to avoid rerendering when using react redux forms? »
I am using "react-redux-form". But I noticed whole FORM which is little bit bigger is rerendered everytime I call dispatch(action...) or onChange(val...
(0) odpowiedzi
2017-02-13 15:02 getting a field from a json object using a "address string" in JavaScript »
I am new to java script , so my apologies if this is trivial. My question is syntactical, if I have an object: this.state = { A : { B: { ...
(1) odpowiedzi
2017-02-13 00:02 Are there any differences in how I am checking props? »
I am always looking into writing code in different and more legible ways, and have been writing my if statements in my React-Redux application slightl...
(1) odpowiedzi
2017-02-12 18:02 is it possible to mix react jsx with non jsx components? »
So the question I have right now is if I have a parent component that is JSX but I have the need to include an html tag such as <i class="fa fa-win...
(2) odpowiedzi
2017-02-12 08:02 Webpack - Uncaught SyntaxError: Unexpected token import »
I'm getting unexpected token import error while running the application. Please have a look at my web pack config setup - -- Webpack.config.js -- ...
(1) odpowiedzi
2017-02-12 06:02 Es6 map array with html doesn't work in JSX? »
I have a const in render function like const arr = ["james","john"]; and in the return function I do <select> arr.map(item => <o...
(1) odpowiedzi
2017-02-11 23:02 react.js setState call with key but without value? »
Just started to learn react.js and javascript. I'm going through all the documentation on facebook's github, but got stuck with this. In the handleCe...
(2) odpowiedzi
2017-02-11 21:02 How does Vue.js, React.js, Angular.js actually work »
This is some sort of question from curiossity. The question is: How does these Client-side frameworks work, let me explain. I am working with javas...
(3) odpowiedzi
2017-02-11 14:02 React: Adding props only to React component and not html tag (React.Children.map recursively) »
I have a Form's React component that manage several Field's component and attach to them some props. Until now, I created only simple form, like this ...
(1) odpowiedzi
2017-02-11 04:02 VSCode break comma separated values into rows »
Is there a way to separate this format: const { a, b, c, d, e, g, f, g, etc } = alphabet Into const { a, b, c, d, e, g, f, ...
(2) odpowiedzi
2017-02-10 22:02 Navigate to different screen from a button in a header »
I am using the new React-navigation from react-native. I have the navigation as follows: StackNavigator: TabNavigator // HomeNavigation TabNavigato...
(1) odpowiedzi
2017-02-10 21:02 React JS: no answer from Sinatra server with fetch call »
I am quite new to Sinatra and React JS, therefore I just wanted to make an GET call from my React website on a Sinatra server to display a plain text....
(1) odpowiedzi
2017-02-10 14:02 React/Redux - Add object to start of array using spread operator »
I am using a redux reducer to add objects to a state array. This is working correctly, however, the objects are being added to the end of the array. I...
(1) odpowiedzi
2017-02-10 04:02 Convert File type to Data URI - React-Dropzone »
I am having trouble integrating React-dropzone with FeathersJS Upload I have successfully implemented the RESTful upload when you POST a datauri to m...
(1) odpowiedzi
2017-02-09 22:02 React: Authentification and avoiding repeating code components »
All of my main react components have some parts like this: export default class ExampleMain extends Component { constructor(props) { supe...
(2) odpowiedzi
2017-02-09 18:02 Redux not connecting to React component »
I have been playing around with Redux, but I can't seem to get it to connect with React. I am using connect with mapStateToProps but the props in my s...
(1) odpowiedzi
2017-02-09 17:02 Redux state with better structure »
I have the following react-redux state: { response: { json: [], waitingForResponse: false, communicationError: false, searchButtonD...
(1) odpowiedzi
2017-02-08 22:02 React JS: How to set grandchildren states »
I'm a beginner React programmer, struggling to understand how I should deal with grandchild states (or see whether it's a good idea to have grandchild...
(3) odpowiedzi
2017-02-08 14:02 Validate one field based on another Field in redux Form »
I am using redux-form, and my Component has several FieldArray. One of the FieldArray component generates table like shown in the screenshot. Here eac...
(0) odpowiedzi
2017-02-08 08:02 Meteor React Komposer: Execute Component Constructor AFTER ready subscription »
I have a React Component Post: export class Post extends React.Component { constructor(props) { this.state = this.props; } ... } , which...
(1) odpowiedzi
2017-02-07 23:02 Django CSRF failure, using React forms »
I'm having a problem with CSRF with Django and React. I have read through the already high number of questions around this, as well as the django doc...
(1) odpowiedzi
2017-02-07 23:02 How to update nested states in React, should state be immutable? »
We are having a heated discussion on how to update nested state in React. Should the state be immutable or not? What is the best practice to update th...
(1) odpowiedzi
2017-02-07 16:02 React component with function »
I have a react class with some div and I want to add some extra HTML from a function. When I run this I get an error saying that OverlayButton is not...
(2) odpowiedzi
2017-02-07 15:02 non empty array with length=0 in Meteor »
const items = []; Meteor.http.call("GET", url,function(error,result){ $.each(JSON.parse(result.content), function(key, value){ items.push(valu...
(1) odpowiedzi
2017-02-07 13:02 ReactJS can't set state from an event with event.persist() »
I need to set a state field which I get from an event, but it doesn't get set when I pass a function to it. The component and method looks like the fo...
(2) odpowiedzi
2017-02-06 13:02 Make DOM changes manually, instead of relying on React's reconciliation »
I would like to make a React component that wraps a complex rendering API. This API can render a plot into HTML+SVG and also provides a function to up...
(1) odpowiedzi
2017-02-06 08:02 React Native: Props and state changed, but not re-rendered »
It have been more than a week I was struggling to get it to work. In the code bellow, data is coming in through props ( Redux pattern ) and being ren...
(2) odpowiedzi
2017-02-06 06:02 React - Changing the state without using setState: Must avoid it? »
My code works, but I have a best practice question: I have an array of objects in the state, and a user interaction will change a value of one object ...
(4) odpowiedzi
2017-02-05 19:02 Adding Blog Content/Static files to existing Preact.js website »
I currently have an existing Preact JS site set up but want to add blog section. So basically easy way to add new pages and routes. I.e. blog/conten...
(1) odpowiedzi