{"id":2880,"date":"2024-03-26T12:38:10","date_gmt":"2024-03-26T12:38:10","guid":{"rendered":"https:\/\/salientsoft.co.uk\/?p=2880"},"modified":"2024-03-26T12:38:10","modified_gmt":"2024-03-26T12:38:10","slug":"react-framework-points-to-note","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2880","title":{"rendered":"React &#8211; Framework Points to Note"},"content":{"rendered":"\n<p>Various points\/gotchas worthy of note, all discovered whilst learning about React&#8230;<\/p>\n<p>1\/ You can define components in their own classes &#8211; to do this you extend the component class and define the render method. However, this is now considered legacy in favour of just writing a function which returns the necessary jsx\/tsx. This is discussed <a href=\"https:\/\/react.dev\/reference\/react\/Component\"><strong>here<\/strong><\/a>, and the migration of components from legacy classes to using functions instead is discussed <a href=\"https:\/\/react.dev\/reference\/react\/Component#alternatives\"><strong>here<\/strong><\/a>.<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Various points\/gotchas worthy of note, all discovered whilst learning about React&#8230; 1\/ You can define components in their own classes &#8211; to do this you extend the component class and define the render method. However, this is now considered legacy in favour of just writing a function which returns the necessary jsx\/tsx. This is discussed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[240,77],"tags":[40,237,15],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2880"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2880"}],"version-history":[{"count":1,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2880\/revisions"}],"predecessor-version":[{"id":2881,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2880\/revisions\/2881"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}