JavaScript (not to be confused with Java) is a high-level, dynamic, multi-paradigm, weakly-typed language used for both client-side and server-side scripting. Its primary use is in rendering and allowing manipulation of web pages. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script).
How can I get React to re-render the view when the browser window is resized? Background I have some blocks
I have an app where I need to set the height of an element (lets say "app-content") dynamically. It takes the
I am trying to learn hooks and the useState method has made me confused. I am assigning an initial value to a
I am following the tutorial on the official React Native website. Using the following to build my project: r
In my component's render function I have: render() { const items = ['EN', 'IT',
I have a simple react component with the form which I believe to have one controlled input: import React from
My structure looks as follows: Component 1 - |- Component 2 - - |- Component 4 - - - |- Component 5
I am new to ReactJS and JSX and I am having a little problem with the code below. I am trying to add multipl
In a React component for a <select> menu, I need to set the selected attribute on the option that reflec
I want to add an element to the end of a state array, is this the correct way to do it? this.state.arrayvar.pu
I'm trying to organize my state by using nested property like this: this.state = { someProperty: {
I am trying to set up my React.js app so that it only renders if a variable I have set is true. The way my
There is a lot of talk about the latest kid in redux town right now, redux-saga/redux-saga. It uses generator
Does React re-render all components and sub components every time setState() is called? If so, why? I thought
How do you perform debounce in React.js? I want to debounce the handleOnChange. I tried with debounce(this.h
I'm looking for a way to detect if a click event happened outside of a component, as described in this ar
Warning: A component is changing an uncontrolled input of type text to be controlled. Input elements should
I was watching a Pluralsight course on React and the instructor stated that props should not be changed. I&apo
I am messing around with React.js for the first time and cannot find a way to show or hide something on a page
I have two components: Parent component Child component I was trying to call Child's method from Parent,