{"id":373601,"date":"2023-04-03T04:14:35","date_gmt":"2023-04-03T04:14:35","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=373601"},"modified":"2023-04-05T10:13:51","modified_gmt":"2023-04-05T10:13:51","slug":"react-state","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/react-state\/","title":{"rendered":"What are State and uses of state  in react"},"content":{"rendered":"\n<p>In the previous article on&nbsp;<a href=\"https:\/\/webkul.com\/blog\/what-are-props-and-how-use-in-react-components\/\">ReactJS | Props<\/a>, we got to know that React props can be broadly classified into&nbsp;<strong>Functional<\/strong>&nbsp;and&nbsp;<strong>Class<\/strong>&nbsp;Components. Also seen that Functional Components are faster and much simpler than Class Components. The primary difference between the two is the availability of the State.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">State<\/h2>\n\n\n\n<p>The state is an instance of React Component, Class can be defined as an object of a set of&nbsp;<strong>observable<\/strong>&nbsp;properties that control the behavior of the component.<\/p>\n\n\n\n<p>In React, state refers to an object that stores data that is relevant to a component. This data can be anything, from a single value to a complex object. The state of a component can be updated using the\u00a0<code>setState()<\/code>\u00a0method, which is a built-in method of React.<\/p>\n\n\n\n<p>The main reason for using state in React is to enable the creation of dynamic and interactive user interfaces. By storing data in a component&#8217;s state, the component can update its view in response to user interactions or changes in the application&#8217;s data.<\/p>\n\n\n\n<p>The\u00a0<code>state<\/code>\u00a0object is where you can store property values that belongs to the component.When the\u00a0<code>state<\/code>\u00a0object changes the component re-renders.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Life cycle of state<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"601\" height=\"322\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg\" alt=\"state-life-cycle\" class=\"wp-image-375694\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg 601w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle-300x161.jpg 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle-250x134.jpg 250w\" sizes=\"(max-width: 601px) 100vw, 601px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating the&nbsp;<code><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-vivid-green-cyan-color\">state<\/mark><\/code>&nbsp;Object Using Class Component<\/h2>\n\n\n\n<p>The&nbsp;<code><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-vivid-green-cyan-color\">state<\/mark><\/code>&nbsp;object is initialized in the constructor:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class Book extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {author: \"Tom\"};\n  }\n  render() {\n    return (\n      &lt;div&gt;\n        &lt;h1&gt;My Book&lt;\/h1&gt;\n      &lt;\/div&gt;\n    );\n  }\n}\n<\/pre>\n\n\n\n<p>The&nbsp;<code>state<\/code>&nbsp;object can contain many properties like:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class Book extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      author: \"Dr Agrawal\",\n      title: \"Mathematics\",\n      price: \"$10\",\n      publish: 2018\n    };\n  }\n  render() {\n    return (\n      &lt;div&gt;\n        &lt;h1&gt;My Book&lt;\/h1&gt;\n      &lt;\/div&gt;\n    );\n  }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Use the&nbsp;<code>state<\/code>&nbsp;Object<\/h2>\n\n\n\n<p>Refer to the&nbsp;<code>state<\/code>&nbsp;object anywhere in the component by using the&nbsp;<code><strong>this.state.<em>propertyname<\/em><\/strong><\/code>&nbsp;syntax:<\/p>\n\n\n\n<p><strong>Refer the state object into the render() method.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class Book extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      author: \"Dr Agrawal\",\n      title: \"Mathematics\",\n      price: \"$10\",\n      publish: 2018\n    };\n  }\n  render() {\n    return (\n      &lt;div&gt;\n        &lt;h1&gt;My {this.state.title}&lt;\/h1&gt;\n        &lt;p&gt;\n          written by {this.state.title} book and price is\n          {this.state.price}\n          publish in {this.state.publish}.\n        &lt;\/p&gt;\n      &lt;\/div&gt;\n    );\n  }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Changing the&nbsp;<code>state<\/code>&nbsp;Object<\/h2>\n\n\n\n<p>To change a value in the state object, use the&nbsp;<code>this.setState()<\/code>&nbsp;method.<\/p>\n\n\n\n<p>When a value in the&nbsp;<code>state<\/code>&nbsp;object changes, the component will re-render, meaning that the output will change according to the new value(s).<\/p>\n\n\n\n<p><code>onClick<\/code>&nbsp;event that will change the price property:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">class Book extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {\n      author: \"Dr Agrawal\",\n      title: \"Mathematics\",\n      price: \"$10\",\n      publish: 2018\n    };\n  }\n  changePrice = () =&gt; {\n    this.setState({price: \"$15\"});\n  }\n  render() {\n    return (\n      &lt;div&gt;\n        &lt;h1&gt;My {this.state.title}&lt;\/h1&gt;\n        &lt;p&gt;\n          written by {this.state.author} and price is\n          {this.state.price}\n          publish in {this.state.publish}.\n        &lt;\/p&gt;\n        &lt;button\n          type=\"button\"\n          onClick={this.changeprice}\n        &gt;Change price&lt;\/button&gt;\n      &lt;\/div&gt;\n    );\n  }\n}<\/pre>\n\n\n\n<p>Always use the&nbsp;<code><mark style=\"background-color:#ffffff\" class=\"has-inline-color has-vivid-red-color\">setState()<\/mark><\/code>&nbsp;method to change the state object, it will ensure that the component knows its been updated and calls the render() method (and all the other lifecycle methods).<\/p>\n\n\n\n<p>For more details, you can follow the document. See the blog\u00a0<a href=\"https:\/\/legacy.reactjs.org\/docs\/state-and-lifecycle.html\" target=\"_blank\" rel=\"noreferrer noopener\">click<\/a>\u00a0here<br><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the previous article on&nbsp;ReactJS | Props, we got to know that React props can be broadly classified into&nbsp;Functional&nbsp;and&nbsp;Class&nbsp;Components. Also seen that Functional Components are faster and much simpler than Class Components. The primary difference between the two is the availability of the State. State The state is an instance of React Component, Class can <a href=\"https:\/\/webkul.com\/blog\/react-state\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":508,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-373601","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What are State and uses of state in react - Webkul Blog<\/title>\n<meta name=\"description\" content=\"React states and use of states,states management in components,manage state in class components,state object with class component\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/react-state\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What are State and uses of state in react - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"React states and use of states,states management in components,manage state in class components,state object with class component\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/react-state\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-03T04:14:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-05T10:13:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg\" \/>\n<meta name=\"author\" content=\"Gaurav Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gaurav Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/\"},\"author\":{\"name\":\"Gaurav Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c\"},\"headline\":\"What are State and uses of state in react\",\"datePublished\":\"2023-04-03T04:14:35+00:00\",\"dateModified\":\"2023-04-05T10:13:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/\"},\"wordCount\":359,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/react-state\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/\",\"url\":\"https:\/\/webkul.com\/blog\/react-state\/\",\"name\":\"What are State and uses of state in react - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg\",\"datePublished\":\"2023-04-03T04:14:35+00:00\",\"dateModified\":\"2023-04-05T10:13:51+00:00\",\"description\":\"React states and use of states,states management in components,manage state in class components,state object with class component\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/react-state\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg\",\"width\":601,\"height\":322,\"caption\":\"state-life-cycle\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/react-state\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What are State and uses of state in react\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c\",\"name\":\"Gaurav Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Gaurav Singh\"},\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/gaurav-singh737\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What are State and uses of state in react - Webkul Blog","description":"React states and use of states,states management in components,manage state in class components,state object with class component","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/react-state\/","og_locale":"en_US","og_type":"article","og_title":"What are State and uses of state in react - Webkul Blog","og_description":"React states and use of states,states management in components,manage state in class components,state object with class component","og_url":"https:\/\/webkul.com\/blog\/react-state\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-04-03T04:14:35+00:00","article_modified_time":"2023-04-05T10:13:51+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg","type":"","width":"","height":""}],"author":"Gaurav Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Gaurav Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/react-state\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/react-state\/"},"author":{"name":"Gaurav Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c"},"headline":"What are State and uses of state in react","datePublished":"2023-04-03T04:14:35+00:00","dateModified":"2023-04-05T10:13:51+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/react-state\/"},"wordCount":359,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/react-state\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/react-state\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/react-state\/","url":"https:\/\/webkul.com\/blog\/react-state\/","name":"What are State and uses of state in react - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/react-state\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/react-state\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg","datePublished":"2023-04-03T04:14:35+00:00","dateModified":"2023-04-05T10:13:51+00:00","description":"React states and use of states,states management in components,manage state in class components,state object with class component","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/react-state\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/react-state\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/react-state\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/04\/state-life-cycle.jpg","width":601,"height":322,"caption":"state-life-cycle"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/react-state\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What are State and uses of state in react"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/9e346a792c1f4cf654b8f7a8ddea4f1c","name":"Gaurav Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2be9fca71131c8014ae06e60b978ec93431494ca0641e0eb802b5fcbdc0a9bcd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Gaurav Singh"},"sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/gaurav-singh737\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/373601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/508"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=373601"}],"version-history":[{"count":34,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/373601\/revisions"}],"predecessor-version":[{"id":376057,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/373601\/revisions\/376057"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=373601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=373601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=373601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}