Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

stateless vs stateful components in react

STATEFUL COMPONENTS
->These are also known as-Class-based or
Container or Smart components.
->These haveastate object.
->These keepatrack of changing data via
the state object.

                             STATELESS COMPONENTS
                        -> These are also known as Function-based
                          or Presentational or Dumb components.
                        -> These do not haveastate object.
                        -> These print out what is given to them via
                         props,or they always render the same
                         thing.
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript deconstruct object 
Javascript :: javascript uppercase function 
Javascript :: make an object javascript 
Javascript :: javascript string to array 
Javascript :: to do list in javascript append appendchild input value 
Javascript :: javaScript Math.log2() Method 
Javascript :: change li position in ul jquery 
Javascript :: express js hello world example 
Javascript :: socket.io cdn 
Javascript :: datatable table header not responsive 
Javascript :: serve static files from express 
Javascript :: render twice react 
Javascript :: rect to rect collision 
Javascript :: javascript on enter key searchbox 
Javascript :: get before 6 month date javascript node js 
Javascript :: how to know the current route in react class component 
Javascript :: declaring constant in jsx 
Javascript :: var javascript 
Javascript :: Square star pattern in JavaScript 
Javascript :: how to manage logging using winston for production and development in node js "github" 
Javascript :: react algolia range slider 
Javascript :: convert string time to date time object 
Javascript :: arrays inside array of objects 
Javascript :: thymeleaf pass variable to javascript 
Javascript :: How to blacklist words with discord.js 
Javascript :: chrome extension add css to page 
Javascript :: listing range in javascript 
Javascript :: javascript palindrome 
Javascript :: mongoose get id after save 
Javascript :: Centos install update downgrade nodejs 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =