<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adam Byrne</title>
    <description>The latest articles on DEV Community by Adam Byrne (@adambxrne).</description>
    <link>https://dev.to/adambxrne</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F147902%2F26b21db9-d7c9-4901-91c9-9bb37bfd82e5.jpg</url>
      <title>DEV Community: Adam Byrne</title>
      <link>https://dev.to/adambxrne</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adambxrne"/>
    <language>en</language>
    <item>
      <title>Redux without the sting</title>
      <dc:creator>Adam Byrne</dc:creator>
      <pubDate>Thu, 06 Jan 2022 19:05:19 +0000</pubDate>
      <link>https://dev.to/adambxrne/redux-without-the-sting-4id2</link>
      <guid>https://dev.to/adambxrne/redux-without-the-sting-4id2</guid>
      <description>&lt;p&gt;Redux is a &lt;em&gt;"state management system"&lt;/em&gt; (English: creates one layer for data and actions to live)&lt;/p&gt;

&lt;p&gt;Once imported you can spin up Redux by creating a &lt;em&gt;store&lt;/em&gt;&lt;br&gt;
&lt;code&gt;const store = Redux.createStore(reducer)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;A reducer is the brains of the operation. It takes in actions and handles the state.&lt;br&gt;
`const reducer = (state=0, action) =&amp;gt; {&lt;br&gt;
/* initialise state as 0 */&lt;/p&gt;

&lt;p&gt;switch(action.type) {&lt;br&gt;
    case "INCREMENT":&lt;br&gt;
      return state + 1;&lt;br&gt;
    default:&lt;br&gt;
      return state;&lt;br&gt;
  }&lt;br&gt;
}`&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
