Questions tagged as 'react'

3
answers

What are the main differences between Angular.js React.js and Vue.js?

In a SPA project that will soon be used in a mobile app as well, I need to know the key differences in deciding which framework to focus on.     
asked by 01.04.2017 / 04:42
1
answer

What is the difference between props and state in React.js?

What is the difference between props and state in react.js , what are the differences and how should they be used?     
asked by 30.12.2016 / 00:36
1
answer

Failed propType: Invalid prop 'children' supplied to 'Router'

I created a project to study react and I'm trying to uncouple my Header from the app by creating a component for it. I created a Header.jsx file and passed the code there but I am getting the following error:    Failed propType: Invali...
asked by 06.01.2016 / 17:46
2
answers

Web Components - What is the difference between Polymer and ReactJS?

With the advancement of the web, we now also have the web components. Google has created and maintains a framework with Polymer name, although it does not have much compatibility with several browsers. At the other end we have Facebook's R...
asked by 23.07.2014 / 22:02
2
answers

Why is it necessary to use bind when working with ES6 and ReactJS?

Using ES5 in development with ReactJS, a component can be declared as follows: var MyComponent = React.createClass({ alertSomething: function(event) { alert(event.target); }, render: function() { return ( <button onClic...
asked by 06.05.2016 / 15:46
1
answer

What is the advantage of front-end frameworks like react?

I was talking to some friends and in the conversation they told me that frameworks like react would be mandatory for front end programming today. I wanted to know your opinion on this, why use a front end language and if you do not use it you...
asked by 06.10.2017 / 21:04
1
answer

What is reactivity in JavaScript?

I see frameworks as Angular, Vue, React, the concept of reactivity . I'm totally uninvolved in the subject, and from what little I know, the concept of reactive programming is basically the realization of asynchronous data flow. A variable...
asked by 10.11.2017 / 13:02
2
answers

How to comment code block in JSX (React)

I want to know if it's possible to comment a block of code inside the render () method in React, I've tried all the ways I know and none of them worked. render() { return ( <div className="Events"> <div className="Ev...
asked by 21.11.2016 / 13:43
2
answers

What is React Hooks

I would like to understand the concept and if possible with examples of this new React feature. What will change in the way you create Reacts projects?    The community seems to have liked, what are the reasons?     
asked by 29.10.2018 / 15:24
1
answer

Correct use of DOM with react.js

Knowing that ReactJS uses a virtual DOM where elements are rendered in a DOM representation in memory so that all changes are made faster then it would be "wrong" to use findDOMNode to directly access a DOM element and manipulate your state?   ...
asked by 23.07.2015 / 04:27