Questions tagged as 'reactjs'

1
answer

Uncaught TypeError: this.setState is not a function

Why can this error be caused in my code? componentDidMount(){ let container = document.getElementById('body'); container.onscroll = function () { let height = this.clientHeight; let scrollHeight = this.scrollHeight; let sc...
asked by 24.02.2017 / 20:18
1
answer

How to login in ReactJS?

I have a component called login, and I was thinking about the following ... This is my onSubmit function which is executed when sending the login form and resolves the server response. onSubmit (e) { fetch ('http://localhost:3000/a...
asked by 16.01.2017 / 21:30
1
answer

How could I do a loop that repeats with data in Json in my case?

Good afternoon, I have a component in react and I need a json with the name and the link for the image to show that in my div . import React from 'react'; class Content extends React.Component { render() { return (...
asked by 10.01.2017 / 22:31
1
answer

call function behind render in React Js (ecma2015)

help in React js with ecmaScript 2015 how to call a method within the method render () {} I get an error Can not read property 'ss' of undefined (... where this error ?? I can not call the function ss that I did within the render () method:...
asked by 15.12.2016 / 05:43
1
answer

React animations error # 119

I am trying to make use of the ReactCSSTransitionGroup library that they explain in the official React documentation. I'm copying this code to try. But still it does not work. I have this error in the console: Uncaught Error: Minified Reac...
asked by 25.11.2016 / 19:38
1
answer

Can I render an HTML file inside a React component?

My case is: I have an HTML file that works perfectly, with all its scripts, functions ... My problem is to pass it to a React component. Because of that, is it possible to import this file to the React component, and render it in your view us...
asked by 12.12.2016 / 16:01
0
answers

Mark and add. React

I hope you are well. I need some help in react, I am relatively new in react. The problem is the following. I have a card made with materialize and in the content I have 4 checkboxes. I want that when a checkbox is marked, it is added to a...
asked by 05.01.2019 / 05:14
0
answers

Error with react-flip-card-2

I really do not know why it fails or what the error is. I've looked for several ways to solve it but I still can not do it, install the module react-flipcard-2 implemente, the cards rotate but after having rotated 2 letters it breaks and mar...
asked by 30.12.2018 / 19:31
1
answer

hide and show menu with React.js

Hi, I'm passing my page to react.js but I do not understand how to open my menu and that it closes, on my page I occupy jquey and equal with the logo of the menu the X and the hamburger that change when the menu is opened, I really do not have a...
asked by 17.12.2018 / 17:48
0
answers

Problem when running Expo from the console

I have a problem I just installed Expo Devs Tools using the windows console but when I run it I get the following error:    [00:31:17] Can not read JSON file: C: \ Users \ ACTIVA DIGITAL \ package.json   [00:31:17] └─ Cause: Error: ENOENT: n...
asked by 12.12.2018 / 06:35