Questions tagged as 'reactjs'

1
answer

How do I react to a checkbox that selects all the other checkboxes?

I'm making a list of checkboxes and for that I based on this page link , I found it very useful. But now I need to add another checkbox that I select to all the previous ones. How would you do it based on what's on the page? But, could you tell...
asked by 01.10.2017 / 23:50
1
answer

Connect to the google calendar API

I'm trying to connect to the Google Calendar API const API_KEY = "AIzaSyACg6feWvXYw_czwB7yYZxr2HFZw8Wjd9k" axios({ method:'get', url:'https://www.googleapis.com/calendar/v3/calendars/primary/events?key=${API_KEY}', headers: {...
asked by 06.10.2017 / 10:34
0
answers

React + Redux + REST [closed]

I present my doubt: I have to do a REST API for external clients. I need to have 3 different applications, 1 for internal use, 1 for external use and the API, which will be connected (apart from external clients) to the other 2 application...
asked by 26.09.2017 / 09:39
0
answers

Eslint error property 'artist' does not exist react in visual studio code

I have the error already mentioned    message: 'Property' artist 'does not exist on type' Readonly < {   children ?: ReactNode; } > & Readonly < {} & ';' at: '16, 56 'source:' js' But the project starts normal without problem...
asked by 17.09.2017 / 20:58
1
answer

Material ui DatePicker sum one day

When selecting a date in the range of 1924, I always add a day. material-ui: 0.18.2 react: 15.4.1 import _ from 'lodash'; import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import moment from 'moment'; const...
asked by 01.08.2017 / 20:57
1
answer

access this in callback ecma6

Friends, I have the following code: Selection Object (in the method to obtain is the relevant code): class Seleccion extends React.Component{ constructor(){ super(); this.state ={ image : null, selecciones:[] }...
asked by 22.01.2017 / 16:54
0
answers

Error when running webpack: Can not find module '/webpack/webpack.server.config.js' [closed]

It's the first time I'm trying to use webpack to develop applications with react. In webpack.server.config.js I have the following code: module.exports = { entry: './source/server.js', output: { filename: 'index.js', path: '...
asked by 13.01.2017 / 00:49
1
answer

Any specification to use "beforeEditCell" or "afterEditCell" inside "cellEditProp"?

Having this code: var cellEditProp = { mode: "click", blurToSave: true, afterSaveCell: function (row, cellName, cellValue) { /************************************/ }, beforeEditCell: function (rowid, cellname, value, irow, icol)...
asked by 18.11.2016 / 10:29
1
answer

Error: It looks like you called 'mount ()' without a global document being loaded

I get this error when I run my tests. import { Meteor } from 'meteor/meteor'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import { mount } from 'enzyme'; import { chai, as...
asked by 11.10.2016 / 20:49
2
answers

Assign className depending on a propp

I am creating a reusable component and one of its features that I want to add is that the background color can be defined with a property. At this time, my component looks like this: import React, {Component} from 'react' import { Row, Col...
asked by 10.09.2018 / 02:49