Data dodania Pytanie
2017-10-09 17:10 Why won't my React accordion animation work? »
I've implemented my own responsive accordion in React, and I can't get it to animate the opening of a fold. This is especially odd because I can get ...
(1) odpowiedzi
2017-10-09 16:10 Should React/Redux development be Object Oriented Programming or Functional Programming? »
I have very recently joined the React & Redux ecosystem; and while I can appreciate the clean organisation between components provided by React (p...
(1) odpowiedzi
2017-10-09 11:10 Return react 16 array elements in typescript »
I want to use the new react 16 feature to return array elements in my render but i'm getting the typescript error Property 'type' is missing in type '...
(1) odpowiedzi
2017-10-09 10:10 div's id attribute is undefined/not getting captured onClick in a react app »
I'm mapping data from the api response and rendering multiple divs out of it. Along with that I'm assigning a unique id from the response to the id at...
(5) odpowiedzi
2017-10-08 22:10 How to get a cpu v cpu function for a react game »
I've build a simple rock, paper, scissors game within a react app and I'm trying to create a button that when clicked allows the cpu to play itself (c...
(1) odpowiedzi
2017-10-08 20:10 Functions inside componentDidMount are undefined »
I have the following block of code: class App extends Component { constructor(props) { super(props); this.state = { avatar: '', ...
(4) odpowiedzi
2017-10-08 18:10 Why does ternary operator work and others don't in React JSX »
return ( <li className="blog-page__item" key={i}> {(itemName === 'Small') ? <Smallitem data={item}/> : nul...
(1) odpowiedzi
2017-10-07 16:10 what `circle: (null : ?{ setNativeProps(props: Object): void })` means »
I am learning react native. I am trying to understand the code Here. The snippet below seems very weird to me. Can you please explain what it does? c...
(2) odpowiedzi
2017-10-07 06:10 How to disable input field based on check-box in a redux form? »
I want a custom redux form field where I can enable/disable input based on a checkbox that is checked. I do not want two fields for the redux form and...
(0) odpowiedzi
2017-10-07 01:10 How to redirect using react-router-dom »
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore, applyMiddleware} from '...
(2) odpowiedzi
2017-10-06 19:10 NPM / Webpack don't load GSAP TimelineLite Correctly »
I am refactoring and running cleanup on a production app, and optimizing dependencies. We have a React component that uses GSAP for some transition-r...
(1) odpowiedzi
2017-10-06 19:10 React: how to remount a sibling component to re-run componentDidMount? »
In my application, a user has multiple.. let's say 'dogs'. The currently selected dog appears in the header, and can be changed through the header's d...
(2) odpowiedzi
2017-10-06 13:10 TypeError: dispatch is not a function. In React stateless component »
i'm just getting into React-Redux. I successfully connected a few components to the store with mapDispatchToProps and mapStateToProps, so my setup see...
(2) odpowiedzi
2017-10-06 11:10 Jest play with Redux actions »
I'm trying to implement snapshots with jest and i ran into a problem. The solution is probably simple, but i can't find it. LoginForm.js class Login...
(3) odpowiedzi
2017-10-05 19:10 React Native project, index.ios.js or index.android.js not generated »
I started with React-Native today. And I am following a web tutorial. Did all the installations correctly on my Windows machine: Java Jdk Android ...
(1) odpowiedzi
2017-10-05 15:10 ReactJS display fetch response onClick »
Im working on a ReactJS project where you can generate a random activity when pressing the generate button. Im doing a fetch to my api to display some...
(2) odpowiedzi
2017-10-05 14:10 React - Get Div Element from another Component »
My Objective is to make a simple open and close menu in React. Im used to vannila javascript where i can use getElementById to get my elements and sto...
(2) odpowiedzi
2017-10-04 21:10 React - this.input.value vs handle change »
What is better? I have a form with 10 inputs. Should I use this.input.value or handle change and store it in state? handleChange(e) { this.set...
(1) odpowiedzi
2017-10-04 17:10 Reactjs conditional attributes for an antd timeline »
I am looping through a set of JSON data for this ReactJS component I am creating that has a timeline. The JSON looks like this : "chart": [{ "la...
(1) odpowiedzi
2017-10-04 14:10 Error: Enzyme Internal Error: unknown composite type undefined »
I'm getting this error when try to apply enzyme and I couldn't find any relative issue about this. Here's the test.js; import React from 'react'; im...
(1) odpowiedzi
2017-10-03 23:10 React: Initiate values in render() or componentDidMount()? »
I'm not quite sure where to initiate calculated values in a react component. So this is how I am doing it right now: render () { const { foo } = th...
(3) odpowiedzi
2017-10-03 16:10 Sweet alert 2 not showing up as a modal when alert thrown »
I assume that I must be importing this wrong some how, but I am not sure. I followed the directions on the github. It says that I can npm install it a...
(2) odpowiedzi
2017-10-03 13:10 Deleting a record using Mongoose with Redux »
I want to delete a record in my mongoDB, when a user presses a button for the given record. For reference: I have all my mongoose and redux code s...
(2) odpowiedzi
2017-10-03 11:10 React Native WebView scroll behaviour doesn't work as expected »
I have a native app that uses React Native WebView to wrap a web page. <WebView ref={webview => (this.webview = webview)} ...
(2) odpowiedzi
2017-10-03 10:10 Using fineuploader with react-rails »
I'm trying to use fineuploader with react and have installed all the relevant dependencies. Following is the code I use:- import React, { Compon...
(2) odpowiedzi
2017-10-02 19:10 React router v4 wildcard next to index route »
Let's say we have this setup const Parent = () => ( <Switch> <Route path="/data" component={Child} </Switch> ) const Child...
(1) odpowiedzi
2017-10-02 15:10 React Native - Passing Data Across Screens »
I'm having some trouble with a react-native app. I can't figure out how to pass data across screens. I realize that there are other similar questions...
(3) odpowiedzi
2017-10-02 15:10 Object not a function, on jspdf invocation »
I have borrowed the code from here and I am trying to make it work as a proof of concept in my React application.One of the issues I encounter is with...
(1) odpowiedzi
2017-10-02 11:10 Is it possible to use React/Redux/Saga application without back-end »
Previously I used React/Redux/Saga just as "presentation" layer of an application with Ruby/Rails and Nodejs back-end. Currently there are couple of b...
(2) odpowiedzi
2017-10-01 21:10 Webpack - Failed to generate the compiled files, or even the dist folder »
When I run : webpack-dev-server, it compiles code and gives the output in browser. But when I run : webpack - p it did not generate the files in dist ...
(1) odpowiedzi
2017-10-01 20:10 How to update the state of reducer? »
I'm passing the index (id) of the object in posts array in the state to be updated. I'm able to find the index of the element with findIndex and chang...
(1) odpowiedzi
2017-10-01 09:10 Input elements not updating in React »
I am building a very basic React application but having some issues with form inputs: My state: class App extends Component { constructor(){ ...
(2) odpowiedzi
2017-09-30 19:09 How to find cause of Warning: PropTypes has been moved to a separate package »
If I get the warning "Warning: PropTypes has been moved to a separate package." How can I locate which npm package is still using it? The warning does...
(2) odpowiedzi
2017-09-30 19:09 Can we have React 16 Portal functionality React Native? »
I'm using React Native which ships with React 16 alpha release which supports portals. While in browser and having access to DOM we can use id or clas...
(1) odpowiedzi
2017-09-30 17:09 Warning: Failed prop type: The prop `todos[0].title` is marked as required in `TodoList`, but its value is `undefined` »
I want to add title to my server as you see in the picture enter image description here its ok to value but its not working with title, title is in ...
(1) odpowiedzi