Data dodania Pytanie
2017-07-31 15:07 Passing props to component via variable »
I have a class component which renders an input and a tooltip and controls state. The <SelectInputType> components job is to take a single prop ...
(2) odpowiedzi
2017-07-31 13:07 Method cannot be called on any member of intersection type intersection - Flow|React|Immutable »
Declared props: type IProps = { user: ?Map<string, any> & Record<IUser>, }; Assigning variables from props using destructuring: ...
(0) odpowiedzi
2017-07-30 23:07 React Material-ui Datepicker / Timepicker OnChange Event callback function encapsulation »
I'm fairly new to React and I'm using Material-ui as an additional UI dependency. I have some repetition in my code that is a little tricky to remove ...
(2) odpowiedzi
2017-07-30 22:07 React Stateful Components without classes »
In React, we can write components as pure functions. However, the problem with this is that you can't use it as stateful components because of the lac...
(1) odpowiedzi
2017-07-30 21:07 React + Reactstrap + CSS Modules + Webpack »
I've been looking how I can combine the following : ReactJS + ReactStrap and CSS-Modules (react-css-modules and/or boostrap-css-modules), however, I c...
(0) odpowiedzi
2017-07-30 18:07 React Native ListView Item ZIndex »
I am trying to implement a drag and drop list view item, where I can drag from a listview and drop into another. The big problem I am facing is the "...
(1) odpowiedzi
2017-07-29 22:07 How could I send a React.js component from my node.js to my client? »
I'm sending a client a loader, and I want to receive my main React.js components from the server, after rendering the loader. I'm using node.js with ...
(1) odpowiedzi
2017-07-29 22:07 React Rout v-4 `this.props.match.params` **undefined** and `staticContext` undefined »
I am using "react": "^15.6.1", "react-dom": "^15.6.1", "react-router": "^4.1.2", Hare my rout : <BrowserRouter> <div...
(1) odpowiedzi
2017-07-29 16:07 How to determine when features were introduced into React »
I am currently creating a package which I will publish on NPM. My package uses React but I don't want to add it as a dependency in my package to avoid...
(1) odpowiedzi
2017-07-29 16:07 React state variable changes unpredictably »
I'm trying to write a front-end using React for the first time. I stumbled upon a problem trying to give users the option to order a list of React co...
(0) odpowiedzi
2017-07-28 22:07 Passing intermediate data between promises in JS without using Promise.all and Promise.resolve »
I'm kind of a JS noob, but so far I really like the ES6 / React / Immutable capability to do functional programming and FRP, and in particular, the pr...
(3) odpowiedzi
2017-07-28 21:07 Rendering root as null (rendering in DOMless scope) »
I wanted to render null at the root, so I can have a full tree that renders null, but just take advantage of the component (+ its lifecyle methods) st...
(0) odpowiedzi
2017-07-28 14:07 Detect Route Change with react-router »
I have to implement some business logic depending on browsing history. What I want to do is something like this: reactRouter.onUrlChange(url => {...
(2) odpowiedzi
2017-07-28 14:07 How to deal with relational data in Redux? »
The app I'm creating has a lot of entities and relationships (database is relational). To get an idea, there're 25+ entities, with any type of relatio...
(2) odpowiedzi
2017-07-27 18:07 Create an extensible architecture with React »
My team is creating the administration panel of a CMS using React, Typescript, TSX and Webpack. Each page of the administration panel has been created...
(0) odpowiedzi
2017-07-27 16:07 How to design a ReactJS component that listens to a WebSocket and interacts with CSS animation »
A ReactJS component needs to listen for events emitted by a WebSocket. For each inbound event the component should render a DOM node. It should then...
(2) odpowiedzi
2017-07-27 06:07 What is difference between React vs React Fiber? »
I just heard that react-fiber is ready. What is the big differences between react and react-fiber? Is it worth it to learn the whole new concept for t...
(2) odpowiedzi
2017-07-26 15:07 Tracking renders in a React app? »
Is there any way to track renders in your app while still using plain components? I'd like to use it for performance monitoring and testing to make su...
(1) odpowiedzi
2017-07-26 09:07 Github Pages don't like relative links »
I have some relative links in a development.md and all links are on the same site. For example: * [Scripts](#scripts) ##Scripts here commes an lot ...
(0) odpowiedzi
2017-07-26 06:07 ReactDOM.render() unresolved »
import React from 'react'; // import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom/dist/react-dom.min'; import {Alert} from 'reactstrap';...
(3) odpowiedzi
2017-07-25 20:07 How to use redux-observable and promise correctly? »
I am using hello.js to sign in. hello('abc').login() returns a promise. It did sign in successfully, because hello.js itself saved the token in the ...
(1) odpowiedzi
2017-07-25 19:07 React.js - When authorizing on the site, if the data is incorrect, how can I get a response with a text error? »
I send data to API with email and password. API Ruby on Rails with library devise-token-auth signinform.js ..........................................
(1) odpowiedzi
2017-07-25 12:07 Outputting n instances of a React component »
I want to create n instances of a React component. What is a good terse way to do this give that JSX can only contain expressions? I currently am tr...
(1) odpowiedzi
2017-07-25 11:07 Component not returning UI even though props are being delivered »
I'm fairly new to React so I think the problem here is likely to be pretty basic. I'm displaying a list of regions and when a user clicks on a region ...
(1) odpowiedzi
2017-07-24 21:07 Set required props on component »
Say that I create a custom component like this: const MyComponent = (props) => ( <div className={props.name} id={props.id}> {p...
(1) odpowiedzi
2017-07-24 08:07 What happens when setState() function is called? »
What does the setState() function run? Does it only run render()? ...
(2) odpowiedzi
2017-07-24 07:07 why my react app showing blank page after webpack-dev-server compilation? »
this is my webpack.conf.js var path = require('path'); var config = { devServer: { contentBase: "./public", hot: true, }, entry: pa...
(1) odpowiedzi
2017-07-23 22:07 How to access the Redux store from deeply nested components »
I'm new to Redux and my nested component structure is shown below. I have a Redux container which owns the state and renders Component A. Component A ...
(1) odpowiedzi
2017-07-23 13:07 react component class variable access »
How do I access this the_frame variable? export default class oneApp extends React.Component { constructor (props) { super(props); ...
(2) odpowiedzi
2017-07-23 01:07 Rendering an array of objects React »
Good afternoon, I am trying to display data that is provided to my application by an instance of MongoDB before the initial render. I have yet been s...
(3) odpowiedzi
2017-07-22 14:07 How to design component layout reasonable in React? »
I have two options in below. What should I choose? Option 1: in Header.jsx: <div> <Logo /> <Menu> <MenuItem&gt...
(3) odpowiedzi
2017-07-22 11:07 React Native: Android activity go back »
I implemented android native module from Bambora SDK and displayed its native view(activity) by getCurrentActivity().startActivity(intent); It works ...
(1) odpowiedzi
2017-07-22 05:07 Passing array value from one class to another »
I am new to ReactJs and the issue that I am having is that the array value is not being displayed on the body class App extends React.Component{ re...
(5) odpowiedzi
2017-07-21 16:07 react kendo grid client side paging not working »
We are using React and Kendo: kendo-ui-core": "^2017.2.621 kendo-ui-react": "^0.14.2 react-kendo": "^0.13.11 trying to get a pageable grid to displ...
(0) odpowiedzi
2017-07-21 13:07 Dispatch Redux action after React Apollo query returns »
I'm using React Apollo to query all records in my datastore so I can create choices within a search filter. The important database model I'm using is...
(1) odpowiedzi