{"id":5360,"date":"2023-03-31T13:42:08","date_gmt":"2023-03-31T08:12:08","guid":{"rendered":"https:\/\/designcollection.in\/blog\/?p=5360"},"modified":"2024-11-09T11:53:32","modified_gmt":"2024-11-09T06:23:32","slug":"reactjs-state-setstate-props-and-state","status":"publish","type":"post","link":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/","title":{"rendered":"ReactJS State: SetState, Props, and State"},"content":{"rendered":"<h1 class=\"my-2\">ReactJS State: SetState, Props, and State<\/h1>\r\n<p class=\"my-2\"><mark>ReactJS is a popular JavaScript library for building user interfaces. One of its key features is the use of state and props to manage data and render the UI.<\/mark> In this <a class=\"text-primary\" target=\"_blank\" href=\"https:\/\/designcollection.in\/blog\/\" rel=\"noopener\">blog<\/a>, we\u2019ll explain how to work with ReactJS state, use the setState method, and understand props.<\/p>\r\n\r\n<h2 class=\"my-2\">Understanding ReactJS State<\/h2>\r\n<p class=\"my-2\">In ReactJS, &#8220;state&#8221; refers to data managed by each component. Each component has its own state, which can change over time based on user actions or events. This state is private, meaning only the component that owns it can access or modify it.<\/p>\r\n<p class=\"my-2\">State is essential in ReactJS because it allows a component to update its UI when its data changes. For example, if a user clicks a button to add an item to a list, the component updates its state to include the new item. As a result, the UI re-renders to show the updated list.<\/p>\r\n\r\n<strong>To define state in a ReactJS component, you can use the <code>useState<\/code> hook. Here\u2019s an example:<\/strong>\r\n<pre class=\"my-2 bg-light\">\r\nimport { useState } from 'react';\r\n\r\nfunction MyComponent() {\r\n  const [count, setCount] = useState(0);\r\n\r\n  return (\r\n    <div>\r\n      <p>You clicked {count} times<\/p>\r\n      <button onClick={() => setCount(count + 1)}>Click me<\/button>\r\n    <\/div>\r\n  );\r\n}\r\n<\/pre>\r\n<p class=\"my-2\">In this example, we define a state variable called <code>count<\/code> with an initial value of 0. We also create a function, <code>setCount<\/code>, to update <code>count<\/code> as needed. Every time the user clicks the button, <code>setCount<\/code> increments <code>count<\/code> and triggers a re-render.<\/p>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2023\/03\/React-provides-state-of-the-art-functionality-1.jpg\" alt=\"React JS State illustration\" class=\"img-fluid img-thumbnail my-1\" \/>\r\n\r\n<h5 class=\"my-2\">Updating ReactJS State<\/h5>\r\n<p class=\"my-2\">To update a component\u2019s state, use the <code>setState<\/code> method. This method changes the state variable\u2019s value, which re-renders the component to display the latest data.<\/p>\r\n\r\n<h5 class=\"my-2\">Here\u2019s an example:<\/h5>\r\n<pre class=\"my-2 bg-light\">\r\nimport { useState } from 'react';\r\n\r\nfunction MyComponent() {\r\n  const [count, setCount] = useState(0);\r\n\r\n  function handleClick() {\r\n    setCount(count + 1);\r\n  }\r\n\r\n  return (\r\n    <div>\r\n      <p>You clicked {count} times<\/p>\r\n      <button onClick={handleClick}>Click me<\/button>\r\n    <\/div>\r\n  );\r\n}\r\n<\/pre>\r\n<p class=\"my-2\">In this example, we define a function called <code>handleClick<\/code> that updates <code>count<\/code> using <code>setCount<\/code>. We attach this function to the button\u2019s click event. Every click increases <code>count<\/code> and re-renders the component.<\/p>\r\n\r\n<h5 class=\"my-2\">Working with Props in ReactJS<\/h5>\r\n<p class=\"my-2\">Unlike state, props in ReactJS are used to pass data from a parent component to a child component. Props are read-only, so a child component can\u2019t modify them directly. Instead, the parent component must update the props, and then pass the updated data down to the child.<\/p>\r\n<p class=\"my-2\">Here\u2019s an example of using props in a ReactJS component:<\/p>\r\n<pre class=\"my-2 bg-light\">\r\nfunction MyComponent(props) {\r\n  return <p>Hello, {props.name}!<\/p>;\r\n}\r\n\r\nfunction MyApp() {\r\n  return <MyComponent name=\"Alice\" \/>;\r\n}\r\n<\/pre>\r\n<p class=\"my-2\">In this example, we create a component called <code>MyComponent<\/code> that takes a prop called <code>name<\/code>. Then, we use this component inside a parent component called <code>MyApp<\/code> and pass &#8220;Alice&#8221; as the value for <code>name<\/code>. As a result, <code>MyComponent<\/code> displays &#8220;Hello, Alice!&#8221; using the value from <code>props<\/code>.<\/p>\r\n\r\n<h5 class=\"my-2\">Summary of State and Props Features<\/h5>\r\n<table class=\"table table-striped table-hover table-bordered\">\r\n  <thead>\r\n    <tr>\r\n      <th scope=\"col\">Feature<\/th>\r\n      <th scope=\"col\">State<\/th>\r\n      <th scope=\"col\">Props<\/th>\r\n    <\/tr>\r\n  <\/thead>\r\n  <tbody>\r\n    <tr>\r\n      <th scope=\"row\">Definition<\/th>\r\n      <td>Data managed by a component.<\/td>\r\n      <td>Data passed from a parent component to a child.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Update<\/th>\r\n      <td>Updated using the <code>setState<\/code> method.<\/td>\r\n      <td>Props are read-only and can\u2019t be modified directly.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Accessibility<\/th>\r\n      <td>Private to the component, accessible only by the component itself.<\/td>\r\n      <td>Accessible by child components via <code>props<\/code>.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Scope<\/th>\r\n      <td>Each component has its own state.<\/td>\r\n      <td>Props can be passed to child components.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Purpose<\/th>\r\n      <td>Stores data that changes over time within a component.<\/td>\r\n      <td>Used to pass data from a parent to a child component.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Initialization<\/th>\r\n      <td>Initialized with a default value using <code>useState<\/code>.<\/td>\r\n      <td>Passed as an attribute in JSX.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Rendering<\/th>\r\n      <td>Triggers a re-render on update.<\/td>\r\n      <td>Triggers a re-render if updated.<\/td>\r\n    <\/tr>\r\n    <tr>\r\n      <th scope=\"row\">Mutability<\/th>\r\n      <td>Can be changed using <code>setState<\/code>.<\/td>\r\n      <td>Read-only and can\u2019t be changed directly.<\/td>\r\n    <\/tr>\r\n  <\/tbody>\r\n<\/table>\r\n\r\n<h5 class=\"my-2\">Key Takeaways<\/h5>\r\n<ul>\r\n  <li class=\"my-2\">State stores data within a component, allowing the UI to update dynamically.<\/li>\r\n  <li class=\"my-2\">To define state, use <code>useState<\/code>. To update it, use <code>setState<\/code>.<\/li>\r\n  <li class=\"my-2\">Props allow data to pass from a parent component to a child component but are read-only.<\/li>\r\n<\/ul>\r\n<p class=\"my-2\">\r\nBy learning these concepts, you\u2019ll be able to create engaging and dynamic user interfaces. Whether you\u2019re building a simple app or a complex system, understanding state and props will improve your skills in ReactJS.\r\n<\/p>\r\n\r\n<h5><span class=\"badge bd-red-200 mx-1 text-capitalize text-muted fw-normal\">State and Props<\/span><span class=\"badge bd-green-200 mx-1 text-capitalize text-muted fw-normal\">ReactJS<\/span><span class=\"badge bd-yellow-200 mx-1 text-capitalize text-muted fw-normal\">JavaScript Library<\/span><span class=\"badge bd-cyan-200 text-capitalize mx-1 text-muted fw-normal\">Redux<\/span><span class=\"badge bd-orange-200 mx-1 text-capitalize text-muted fw-normal\">Web Application<\/span><\/h5>\r\n\r\n<p class=\"my-2\"><mark>ReactJS is a popular JavaScript library for building user interfaces. One of its key features is the use of state and props to manage data and render the UI.<\/mark> In this <a class=\"text-primary\" target=\"_blank\" href=\"https:\/\/designcollection.in\/blog\/\" rel=\"noopener\">blog<\/a>, we\u2019ll explain how to work with ReactJS state, use the setState method, and understand props. For more detailed information on ReactJS, you can visit the <a href=\"https:\/\/reactjs.org\/docs\/getting-started.html\" target=\"_blank\" rel=\"noopener noreferrer\">official React documentation<\/a>.<\/p>\r\n\r\n\t","protected":false},"excerpt":{"rendered":"<p>ReactJS State: SetState, Props, and State ReactJS is a popular JavaScript library for building user interfaces. One of its key features is the use of state and props to manage data and render the UI. In this blog, we\u2019ll explain how to work with ReactJS state, use the setState method, and understand props. Understanding ReactJS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6331,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[432],"tags":[393,397,373,465,420,464,466],"class_list":["post-5360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-react","tag-javascript-library","tag-lead-generation","tag-react-js","tag-redux","tag-responsive-template","tag-state-and-props","tag-web-application"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ReactJS State: SetState, Props, and State<\/title>\n<meta name=\"description\" content=\"understand the differences between props and state, and gain a deeper understanding of state management in ReactJS.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ReactJS State: SetState, Props, and State\" \/>\n<meta property=\"og:description\" content=\"understand the differences between props and state, and gain a deeper understanding of state management in ReactJS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog is an ocean of knowledge\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/designcollection.in\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-31T08:12:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-09T06:23:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2023\/03\/Untitled-design-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"designcollection\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"designcollection\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\"},\"author\":{\"name\":\"designcollection\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67\"},\"headline\":\"ReactJS State: SetState, Props, and State\",\"datePublished\":\"2023-03-31T08:12:08+00:00\",\"dateModified\":\"2024-11-09T06:23:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\"},\"wordCount\":645,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#organization\"},\"keywords\":[\"JavaScript library\",\"Lead Generation\",\"React js\",\"Redux\",\"Responsive Template\",\"State and props\",\"Web Application\"],\"articleSection\":[\"React\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\",\"url\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\",\"name\":\"ReactJS State: SetState, Props, and State\",\"isPartOf\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#website\"},\"datePublished\":\"2023-03-31T08:12:08+00:00\",\"dateModified\":\"2024-11-09T06:23:32+00:00\",\"description\":\"understand the differences between props and state, and gain a deeper understanding of state management in ReactJS.\",\"breadcrumb\":{\"@id\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/designcollection.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ReactJS State: SetState, Props, and State\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/designcollection.in\/blog\/#website\",\"url\":\"https:\/\/designcollection.in\/blog\/\",\"name\":\"Design Collection\",\"description\":\"Technology Tips, Tutorials, Learning &amp; How to Guides\",\"publisher\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#organization\"},\"alternateName\":\"IT Services | Best Lead Generation Company In Indore - Design Collection\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/designcollection.in\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/designcollection.in\/blog\/#organization\",\"name\":\"Design Collection\",\"alternateName\":\"IT Services | Best Lead Generation Company In Indore - Design Collection\",\"url\":\"https:\/\/designcollection.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png\",\"contentUrl\":\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png\",\"width\":240,\"height\":41,\"caption\":\"Design Collection\"},\"image\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/designcollection.in\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67\",\"name\":\"designcollection\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g\",\"caption\":\"designcollection\"},\"sameAs\":[\"https:\/\/designcollection.in\/blog\/\"],\"url\":\"https:\/\/designcollection.in\/blog\/author\/designcollection\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ReactJS State: SetState, Props, and State","description":"understand the differences between props and state, and gain a deeper understanding of state management in ReactJS.","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:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/","og_locale":"en_US","og_type":"article","og_title":"ReactJS State: SetState, Props, and State","og_description":"understand the differences between props and state, and gain a deeper understanding of state management in ReactJS.","og_url":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/","og_site_name":"Blog is an ocean of knowledge","article_publisher":"https:\/\/www.facebook.com\/designcollection.in","article_published_time":"2023-03-31T08:12:08+00:00","article_modified_time":"2024-11-09T06:23:32+00:00","og_image":[{"width":1200,"height":1000,"url":"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2023\/03\/Untitled-design-1.jpg","type":"image\/jpeg"}],"author":"designcollection","twitter_card":"summary_large_image","twitter_misc":{"Written by":"designcollection","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#article","isPartOf":{"@id":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/"},"author":{"name":"designcollection","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67"},"headline":"ReactJS State: SetState, Props, and State","datePublished":"2023-03-31T08:12:08+00:00","dateModified":"2024-11-09T06:23:32+00:00","mainEntityOfPage":{"@id":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/"},"wordCount":645,"commentCount":0,"publisher":{"@id":"https:\/\/designcollection.in\/blog\/#organization"},"keywords":["JavaScript library","Lead Generation","React js","Redux","Responsive Template","State and props","Web Application"],"articleSection":["React"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/","url":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/","name":"ReactJS State: SetState, Props, and State","isPartOf":{"@id":"https:\/\/designcollection.in\/blog\/#website"},"datePublished":"2023-03-31T08:12:08+00:00","dateModified":"2024-11-09T06:23:32+00:00","description":"understand the differences between props and state, and gain a deeper understanding of state management in ReactJS.","breadcrumb":{"@id":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/designcollection.in\/blog\/reactjs-state-setstate-props-and-state\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/designcollection.in\/blog\/"},{"@type":"ListItem","position":2,"name":"ReactJS State: SetState, Props, and State"}]},{"@type":"WebSite","@id":"https:\/\/designcollection.in\/blog\/#website","url":"https:\/\/designcollection.in\/blog\/","name":"Design Collection","description":"Technology Tips, Tutorials, Learning &amp; How to Guides","publisher":{"@id":"https:\/\/designcollection.in\/blog\/#organization"},"alternateName":"IT Services | Best Lead Generation Company In Indore - Design Collection","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/designcollection.in\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/designcollection.in\/blog\/#organization","name":"Design Collection","alternateName":"IT Services | Best Lead Generation Company In Indore - Design Collection","url":"https:\/\/designcollection.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png","contentUrl":"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png","width":240,"height":41,"caption":"Design Collection"},"image":{"@id":"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/designcollection.in"]},{"@type":"Person","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67","name":"designcollection","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g","caption":"designcollection"},"sameAs":["https:\/\/designcollection.in\/blog\/"],"url":"https:\/\/designcollection.in\/blog\/author\/designcollection\/"}]}},"_links":{"self":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts\/5360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/comments?post=5360"}],"version-history":[{"count":25,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts\/5360\/revisions"}],"predecessor-version":[{"id":6330,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts\/5360\/revisions\/6330"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/media\/6331"}],"wp:attachment":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/media?parent=5360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/categories?post=5360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/tags?post=5360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}