Data dodania Pytanie
2017-05-26 21:05 Deploy and Profit - Understanding Step 10 in React Native Getting Started »
After reading on how to integrate a React Native App in an existing Android App, Step 10 states: Deploy & Profit! I noticed it was som...
(1) odpowiedzi
2017-05-26 16:05 React PropTypes not showing is required »
I have these PropTypes setup: Select.propTypes = { onSelect: PropTypes.func.isRequired, data: PropTypes.arrayOf(PropTypes.shape({ key: PropT...
(1) odpowiedzi
2017-05-26 15:05 Wait for promise from father component from a children in React »
I'm trying to implement a React application using the Container/Presentational pattern (a.k.a Smart/Dumb components). Simply put what I have is a Pre...
(1) odpowiedzi
2017-05-26 12:05 Enzyme check if component mounted without errors on prop types »
I am creating integration test for a components to test its interface and I am mounting it like so const wrapper = shallow(<Component boolVal={()=...
(1) odpowiedzi
2017-05-25 14:05 Can I make a React Component listen to bubbling change events on its root element? »
We're using a higher-order component to provide validation in our forms and it is responsible for acting on all change events. The problem I'm having ...
(2) odpowiedzi
2017-05-25 07:05 Home does not contain an export named Home »
I was working with create-react-app and came across this issue where I get Home does not contain an export named Home. Here's how I set up my App.js ...
(1) odpowiedzi
2017-05-25 06:05 How to stop callback from unmounting component »
Really confused here. I updated to React Router 4 which required a few changes and now when my registration form errors on the server side it returns ...
(1) odpowiedzi
2017-05-24 20:05 Actions must be plain objects while using Redux »
Im getting an error like Actions must be plain objects. Use custom middleware for async actions while using react redux. Im developing an application ...
(1) odpowiedzi
2017-05-24 20:05 Uncaught Error: Cannot Find Module When Using Dynamic Import for JavaScript »
I'm using Create-React-App and am looking to use the dynamic import() supported by webpack 2.0 to import a module based on a variable string. I've lo...
(0) odpowiedzi
2017-05-24 13:05 JS code in functional presentation component »
Still getting to grips with React and ES6. I have the following functional presentation component which works fine: const Jobs = (props) => ( &l...
(5) odpowiedzi
2017-05-23 19:05 Do I need to import React for stateless functional components? »
All around me (e.g. blog posts, code) I see code for React stateless functional components in which React is imported even though it's never used. im...
(2) odpowiedzi
2017-05-23 10:05 React JS Cannot read property 'location' of undefined »
This is my first time use React JS, I stuck with this error, I am trying to learn react router from this video also watched it multiple times, but I...
(3) odpowiedzi
2017-05-23 03:05 React performance: what's a good guide for an upper limit on number of components? »
I am using React, Bootstrap and Typescript. I've built a list/edit screen that can contain up to 200 rows (100 "list" rows and 100 "detail" rows). Ea...
(1) odpowiedzi
2017-05-22 18:05 React - Running count of components in children (e.g. for footnotes) »
I have a react component that represents a document with text and some footnotes. The text should be rendered like this: This the first footnote[1], ...
(1) odpowiedzi
2017-05-22 15:05 How Do I Stub webpack's require.ensure? »
I use webpack's code splitting feature (require.ensure) to reduce the initial bundle size of my React application by loading components that are not v...
(1) odpowiedzi
2017-05-22 04:05 React Style Prop Syntax Issues »
I am trying to learn React. Why can you not use style inside of a return inside of a component? The Error: The style prop expects a mapping from ...
(4) odpowiedzi
2017-05-21 23:05 Why am I getting an unexpected token in my React component? »
I have one problem which I can't really figure out how to fix it. I've checked the React documentation and my syntax is like in the one in the officia...
(1) odpowiedzi
2017-05-21 12:05 Ternary condition in ES6 destructuring object »
I wrote a stateless function, in this function I use Destructuring object declaration, but one of my variables has condition. I wrote it with ternary ...
(2) odpowiedzi
2017-05-21 06:05 'this' issue while mapping a List with button reactjs »
I'm mapping results from a GET request. The mapping works fine. I get each User picture, name and even the correct label on the button. But when I con...
(1) odpowiedzi
2017-05-20 21:05 Hiding fetch request keys »
I am using the new OMDB api, and want to keep the fetch requests (that include the key) out of visibility on client-side. Here is an example of the p...
(0) odpowiedzi
2017-05-20 21:05 Navbar for React Website »
I am learning react. I am trying to create a navbar and have my tabs open components as new pages using browser router. (When I click the navitems not...
(2) odpowiedzi
2017-05-20 08:05 Enzyme: When to use shallow, render, or mount? »
From the Enzyme docs shallow, render, and mount are described, but when to use which method? ...
(1) odpowiedzi
2017-05-19 21:05 Datatables.net with ReactJS, render a ReactJS component in a column »
i have the following component with datatables: import React, { Component } from 'react' import { Link } from 'react-router' import { PanelContaine...
(1) odpowiedzi
2017-05-19 11:05 How to clean up import statements in modules »
I'm slowly learning how to break things up into components but my OCD is going mad on one particular one. I have a tab view containing lots of differe...
(4) odpowiedzi
2017-05-19 09:05 How can I read Less variables in Javascript? »
How can I read less variables in javascript like less-vars-to-js? I'm working on a React project(webpack2、less etc), but not SSR(node environment)
(1) odpowiedzi
2017-05-18 13:05 Role of QueryRenderer in Relay Modern? »
So, first a bit of background. I'm a native iOS/Android developer who is now starting my first ever React Native project. It comes with all the benef...
(1) odpowiedzi
2017-05-18 10:05 Undocumented method of passing element children: as attributes instead of explicit children »
I have encountered some example JSX code in a book which took me by surprise - it contains an anchor tag in the single (non-closed) form. I have simpl...
(1) odpowiedzi
2017-05-18 09:05 In which branch should I build a docker image? »
We have a react project that is based on react-static-boilerplate which will follow git DMZ flow and will make use of docker images. Does the build ...
(0) odpowiedzi
2017-05-17 17:05 react-router 4 not re-render when clicking <Link> »
I'm working on server-side rendering, so far the initial page can be rendered with react-router successfully according to the path entered to the brow...
(0) odpowiedzi
2017-05-17 17:05 Reactable: How to extend table rows in separate React components? »
I use reactable for a big table data, which I have to manipulate through displaying, sorting, filtering and pagination. The react component plugin wor...
(0) odpowiedzi
2017-05-17 13:05 React - State Error when loading image »
I'm getting a strange issue in React, when trying to display an image. The code causing this is an <img src={'./assets/logo.svg'} /> tag. Howeve...
(1) odpowiedzi
2017-05-17 12:05 Removing a DOM element of a mounted Component »
I'm working on a project that incorporates React Component into a NON-react environment. The project uses Backbone and we're slowly migrating some pa...
(1) odpowiedzi
2017-05-17 12:05 Why is onClick being called on render? »
import React, { Component } from 'react'; class Bookmark extends Component { constructor(props) { super(props); this.handleClick = this.ha...
(1) odpowiedzi
2017-05-16 21:05 React.js array.map does not return jsx »
I have a mobx store from where I am pulling an array of data and trying to render each as an <li> let completedList = completedTodos.map(todo ...
(1) odpowiedzi
2017-05-16 21:05 ReactJS trying to call setState from onClick function and getting: Cannot update during an existing state transition error »
Inside my render return() I have these: <button onClick={ this.selectTimeframe('Today') } className={ this.setActiveIf('Today') } type="bu...
(2) odpowiedzi