{"id":1972,"date":"2023-05-26T14:53:33","date_gmt":"2023-05-26T14:53:33","guid":{"rendered":"https:\/\/itnotes.apjsoftwares.com\/?p=1972"},"modified":"2023-05-26T14:53:33","modified_gmt":"2023-05-26T14:53:33","slug":"state-the-difference-between-getintialstate-and-constructor","status":"publish","type":"post","link":"https:\/\/itnotes.apjsoftwares.in\/index.php\/2023\/05\/26\/state-the-difference-between-getintialstate-and-constructor\/","title":{"rendered":"State the difference between getIntialState() and constructor()?"},"content":{"rendered":"\n<p>If you want to create one component by extending \u2018React. Component\u2019, the constructor helps you to initialize the State. But, if you want to create by using \u2018Reat.createClass.\u2019 then you should use \u2018genInitiaState.\u2019<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to create one component by extending \u2018React. Component\u2019, the constructor helps you&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24],"tags":[],"_links":{"self":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1972"}],"collection":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/comments?post=1972"}],"version-history":[{"count":1,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1972\/revisions"}],"predecessor-version":[{"id":1973,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/posts\/1972\/revisions\/1973"}],"wp:attachment":[{"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/media?parent=1972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/categories?post=1972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itnotes.apjsoftwares.in\/index.php\/wp-json\/wp\/v2\/tags?post=1972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}