<?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: Trey Huffine</title>
    <description>The latest articles on DEV Community by Trey Huffine (@treyhuffine).</description>
    <link>https://dev.to/treyhuffine</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F40142%2F41e9c6dc-973b-4fc8-b0f6-80974344e111.jpeg</url>
      <title>DEV Community: Trey Huffine</title>
      <link>https://dev.to/treyhuffine</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/treyhuffine"/>
    <language>en</language>
    <item>
      <title>The Grind: Tech &amp; Coding Weekly — Issue #2</title>
      <dc:creator>Trey Huffine</dc:creator>
      <pubDate>Tue, 23 Jun 2020 22:26:54 +0000</pubDate>
      <link>https://dev.to/treyhuffine/the-grind-tech-coding-weekly-issue-2-440p</link>
      <guid>https://dev.to/treyhuffine/the-grind-tech-coding-weekly-issue-2-440p</guid>
      <description>&lt;p&gt;&lt;a href="https://thegrind.news/"&gt;&lt;strong&gt;&lt;em&gt;Subscribe to The Grind&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;  &lt;em&gt;to get the best tech and programming stories of the week delivered to your inbox.&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Science &amp;amp; Society&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/A4xez7HuDPf2TGeffZuLXeUvazREOKomF-zzv-hSkfmCBCgLm2FrvtkPKcoFxqNLiyWuIuRaD5TqiqeOPdNwGGFR8kTQ_hbT5WtZf50nwF7j11U14YCzFFdccBwELVM7oNMz8QGNhW2qHiw7VXn9kY1GkvR3CFnvk3hmZOlmHCCg2o6lJXGXj5sWJqQxNkGl1Q4SJNcOESfeJDkZiNmGbEgzEROvs2AfaSAv2_AQVAwCKGuaF5hZ3RXPpGb7FYq6W2uT_bnC6yE"&gt;&lt;strong&gt;Microsoft Says It Won’t Sell Facial Recognition To The Police. These Documents Show How It Pitched That Technology To The Federal Government.&lt;/strong&gt;&lt;/a&gt; (4min 43sec)&lt;/p&gt;

&lt;p&gt;The technology we live with today has helped us achieve all sorts of efficiencies and possibilities that could only have been imagined 10 years ago. Facial recognition has returned as a topic of hot contention, and we are starting to learn what the big players in tech have been doing with it. Despite publicly stating they won’t sell this tech to police departments, newly surfaced documents show that Microsoft has already attempted to sell this technology to the US government multiple times, most recently to the DEA in 2017.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/wdciY2YsErkDMivzHh1mbedPbMuWDUcxiIBaOm_wmWWA2XKiKK5c7ZeynZlazJoyXO8qeP2Th4Up-FsyMjy8xMqc7DHr-YzBNsyBqi8HHVqTDKJiwZblpuwz3YO39668QKj0GS_G1GMkcAJ_GEMuk_s4zZZvt0rgembxg1iF6rRNlmyr9jVMKqMic8CjjGfKtbFamS-xUwwpNsd85IPw0MBAp0m7_Cs-9ItbUSuw988QzM2EozXIA9cqZ1AizKO0YQylaJXcS_s_HmobEH2vlIqz6FU"&gt;&lt;strong&gt;Boston Dynamics now sells a robot dog to the public, starting at $74,500&lt;/strong&gt;&lt;/a&gt; (8min 36sec)&lt;/p&gt;

&lt;p&gt;Since 2016, YouTube videos like &lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/79ud8_oBoXT5Fi286bbH1lVOY4fJ16MOkP3f3XPSpW3QXQN6c7p6sfx6XjseesBCHOIMaX6_hR3jXU4zZ1RNFtgACzeV0sBEWYBGKaFQlWWnh3daOzSZLe8_r6ucURALDHs3dSOqsn5Uc5_nL34TbtQ0Fgy0DVxStoDM7Gs5f-BYZqOlcLht-5_1srPT"&gt;this one&lt;/a&gt; have been introducing the world to Boston Dynamic’s robot dog. What started off as a slightly creepy proof of concept has turned into a robot pet you can now buy for yourself! (Provided you have seventy five thousand dollars to burn)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/tx129sg4dSxJOdRlgKihwA2sCUOTAGtOqeGmiU33DOawPRa48lasgqyg0jJt5DZrMLTCvibjCpCiD-CAcFHgaNnOT7VXC7YOTfnGS1eEqp03pvGuz5Lfruy0guHmM66-KOF9ZhGYTaM2nIZFYMF_PukqWCQOyssHvqG5wkC9pODeJrK1HcW53HSr2m1pckEYxiw03kPmh7QQsHkUmokFIuXwBSy4AhmX8SqG_O_FWxnFGjGiByiawnsYoE2yaO93QSfdCvUrxBxpi-fka_bDIW_Duu5oAUBYDOtHef9abFlQqEgHWVfhn3sRDJ_0rrAU9STxOFGQRPEhGYfsV1WVNbIzZvW-tCQTxj9l6AM6mEmWwnpVZPSFxUaAwSCqUQ"&gt;&lt;strong&gt;A Super Sensitive Dark-Matter Search Yields Strange Results&lt;/strong&gt;&lt;/a&gt; (6min 41sec)&lt;/p&gt;

&lt;p&gt;A recent study on dark matter found surprising “anomalous data” that may turn out to be a brand new particle. This “unexpected bump” in the data could be the hypothetical solar axion particle much like a photon, and indicates the possibility of “new physics beyond the Standard Model.”&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Security&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/Ld4lvd8yuJ_zVv3UrXUnDBppNHFN8ftWDE7YkZAF8W3gkb4BkJL9fj-rgrp4UCNXFpHuVcolTZhmIBF3XXQhfaQZBDHPiiVMP1l9XLMfxhO5dDM1qm1P2EQ0hJfpOcJ5ZdeSYsfwzs0Bf0hTf7j7ESHJfFPc5UOrJ0-8Q1JvV5e8jakBK3EUcHMMLjCu_SNnwfHBYVsNqEWEgBo3Xs-YPWaXbz9E7Yk-OCxWdrK8vfEuIkNeta_fyrvZv6eKq7hQ54admm6ng80r_1YcH6qcvXDHAb4m8jQWC-BznWj3FuOvQ57fQduEKkAUBetV7zs8MbNVejgdyMycoMBO4RjLH96KJg"&gt;&lt;strong&gt;Massive spying on users of Google’s Chrome shows new security weakness&lt;/strong&gt;&lt;/a&gt;  (3min 33sec)&lt;/p&gt;

&lt;p&gt;Google recently announced they removed over 70 malicious extensions from the Chrome Web Store after they were notified by security researches of their existence. It is troubling that Google has been unable to keep up with ensuring the security of software within their ecosystem, even though they’ve promised many times to “do regular sweeps to find extensions” that harbor malware.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/8vQ7J3ISZ2n4yYyQKLnW_-v7hPS86fLQl1IZKipbC5EKRE08KMWvwblHlOPEqJRj8Y11we2nqZZoFZx-31ipOTglOwhxG_9aNcbId6fW3XtHuRxGyAriQb1Gvfe4mx-URqVCpvKTq5C6PnGCTtThiEshLdxKXe-UWiv8aNw2uBJ2-WzA3ubYSXkJCICz8E-C2UsSypk57Sra9xDt8frRJgW7suTn-gU5d9VC6Z3vqla8A4Sct2EPrCKnivOtvaSo0CFspUPt52EXdRXwC96h4YO40-14Ul4UCE-p-P23mtMsca1P6AE3"&gt;&lt;strong&gt;Multiple “CIA failures” led to theft of agency’s top-secret hacking tools&lt;/strong&gt;&lt;/a&gt;(3min 57sec)&lt;/p&gt;

&lt;p&gt;A new report published last Tuesday found that a leak of CIA secrets to WikiLeaks occurring in 2017 was possible due to a systemic lack of security that does “not appear to be limited to just one part of the intelligence community.” Named Vault 7 by WikiLeaks, it entails details of numerous hacks and vulnerabilities kept secret by the CIA.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/vLKBk8kLqHl_R3Fu4AnRsv72JFt-a0LlIUF1M0u5L7qURrLwGr-6MvNMqizYwgaoVWwPLKjkn4MZGZK_bkOpx9qunpdg-ISKn5HluPGHrk4p1CU5UDWiSjIVGO955fgNJ3dMCzJYRv6stogc2_adCn7bnf92FnzKQhAzxOXrIAJNv9xbNmAeATCUF-uexF6qS6iGzZiNYjX4x4uL4E31c5cDzYIq3D-wXOzXotA6PpKzzNgvh64GH6AgtluNl06F_QhDb9nCqtILTpQZMk_if3syZQcWv_u-35cSwqpOsAdE6PXHjg"&gt;&lt;strong&gt;Introducing Firefox Private Network’s VPN — Mozilla VPN&lt;/strong&gt;&lt;/a&gt; (2min 37sec)&lt;/p&gt;

&lt;p&gt;Mozilla is getting into the VPN game. They have garnered a reputation for security and privacy, so a VPN offering makes a lot of sense.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Tech Business&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/vdaZdDWSB37q_aE4sVvkT3goARA76xP5BiYAHfrAJ4Egx_YMF40cw1m_U4Bkh2D9-yy_N5eSWZvbEWm7phjzA8Qq73Y6OTnh7z129rL3XvZUfsZXDosmmbPwhwCYDPU2n9mWVZiB1iGGbx1RphR7rQeT7VFbZatJQjfpdXez5YkiZByaj0l0g2n4nzU7BHptuqM9r7XenKLmNhCtJvEsxmncxnOjkWJBDkIXrGijuGgHX8rVuw2nCujM6FvcBDCWo-1f5t13WcQAqwkwIXM4"&gt;&lt;strong&gt;DoorDash valued at $16 billion after new funding round&lt;/strong&gt;&lt;/a&gt;  (1min 16sec)&lt;/p&gt;

&lt;p&gt;Thanks in no small part to the COVID-19 lockdown, delivery service DoorDash has announced an impressive sixteen billion dollar valuation. Big players in the gig economy are proving they can flourish during a pandemic, at a time when many other companies are struggling.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/4DtpzdHArKnA3C1UGYWh7yb8RVKHnnuQagv23R_HcyOPn3G2hZUqP-wkoxsN8HA0M52UktaLn1SKhBsDSguRH0TIHWgxoT9t5Maq83Q7IT91ctyMf_TTuXxytkAMpbUEN40nsl7Z8xiJgPq9OHK0iQspqLFv1AhP6mJSCxeqaJqfpQKisQjHJcZgavtOI_sUmifnpSw_rphRZAXH5Z_-oDAIkEfuPo_rQWE-AldvRHLuk0nAjDyGhZ7yNGBpPM5e5-xOUgk55X-kkcDsfkikLeHLlK3YLV1omRoWJQ91aXoPchxusNC7A4iyWHI"&gt;&lt;strong&gt;Wirecard CEO exits as search for missing billions hits dead end in Asia&lt;/strong&gt;&lt;/a&gt; (3min 30sec)&lt;/p&gt;

&lt;p&gt;11.2 billion dollars is a lot of money to lose in two days. At this time, it appears this unfortunate turn of events for the once uber-hot German company Wirecard has been caused by its involvement in “a web of sham transactions.” The company has hired a former compliance officer from Germany’s stock exchange as the interim CEO in an attempt to recover.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/qhiyKHXZ1ZJe6nGN_Xs5Py12kwKq-a7HWMPvN4DeVOWTPsiRa6yk2ii5PtjAe84goK5Qc693yjZ-Q1GituUyUppM1pBV022iEvg20oZcy5ywusytpyb9tm-EKxjzhYKriXUIySN9cCBT-KPdnSLmqu1cPul_KqvZtO5PYth8_C_sIbeeWwvq3TUa2cuTYqqRzsveBwBI5peT"&gt;&lt;strong&gt;Unbounce raises $38.4M to build better landing pages with automation&lt;/strong&gt;&lt;/a&gt; (1min 58sec)&lt;/p&gt;

&lt;p&gt;Most everyone with a website wants an attractive landing page. Startup Unbounce has been fulfilling this need since 2009, and recently raised over 38 million dollars to continue this effort. The company hopes to use machine learning to provide end users with automated landing pages that custom fit their site’s needs.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Health&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/ombUNKOQzkogTDQC4LSxPduOaxd4nsR2iFl1WLPy-C5cWMMtmq8zND449NTBNii2LdLse3o1LdrqwmS45eV3ycGJV4BZydr3GvtfhYDAtf1RhZRhEqHCS3GEeXwi6QrGCz5hjjpzUDRWcXGWWHib6C7CUB0IM08t_B1x6Pe1DdOwl6fSLdST56yO6vIwFfiwYPT5sg"&gt;&lt;strong&gt;On Coding, Ego, and Attention&lt;/strong&gt;&lt;/a&gt;  (11min, 29sec)&lt;/p&gt;

&lt;p&gt;This is an intelligent, meditative treatise on how ego and attention affect us, told through the lens of personal experience and multiply world paradigms.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/KsgfsL9Q4s55xrI1-LflQN194Ya23nF9LQ4xywKPym2nigz5RlYU8UQO1xX2mmaRdNAIOSgRtCAOJffo8dTKRHZKikuVI2euZqV7wbESfDAIKuemOalOPYeyFFDi_8vNDXscCg6xwk8jVjy5XwzDwml-Q3OJw37SV7bNygBrBjYLjcf5RMHKBCstgS9KP5L_KuJnY5hxCpxm38_UXWDBFw4h5m20n3grS3GBUcjk1_l0O4719ueG7ZY4oM7fDd4JWgVdmopvGOULK-7kwdOnB4m_M5PpyJp8a1FvitrHHdGEUK91-y3H6DYHdI-zEwi9sFhPtObjmUVPoPDw0Nw"&gt;&lt;strong&gt;There’s a reason we procrastinate and it’s not laziness&lt;/strong&gt;&lt;/a&gt; (4min 27sec)&lt;/p&gt;

&lt;p&gt;It turns out procrastination has more to do with our negative emotions associated with a given task. This is a nice quick write up of the current science behind procrastination along with a few practical tips to keep it from affecting your work.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Dev Thoughts&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/59_i_bu7hcmwhbKAg1KejysQM1cQZboARQd_yJUshXo7wQbPL2JGSe0CMnMJsMhrEIY9YMLMVhrkfeTt2VVB7nsUUKssPk6n2-_9aKbp24b-9dBk2rub3RIa0-OKClGaUYQ9IEtcC6lOgTmEyT6ZBkxAWHd4S_arbcEYyCRRk8v-pXvyeflSuPp11Jk-8g"&gt;&lt;strong&gt;Github isn’t fun anymore&lt;/strong&gt;&lt;/a&gt;  (2min 40sec)&lt;/p&gt;

&lt;p&gt;A thoughtful lament on the state of the trending repositories board on GitHub. It doesn’t quite have the same magic, or usefulness, it once did.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/01JeG5-Xudb4uxOps53uwfqekf9WKK7JV8xiz-4fshP2eRebRWp5ZoreetkGvwomRz_lQkAOdkO99boq-ksMwBRVSrsKQJUmca4sdP-JWf0DfDMGY9E-aYgn3Yu4-d2hjOxz2Ejq0t9KB8FBcR_ld6tAtLO63UqE5Cw4SFX4nwpuuOp2-Nbk8z2LahDk39RlNaOSK8gCigJlaNEn-_NbnTY2T_H4moTwxPnm0mQ0nc06mA"&gt;&lt;strong&gt;The Coming Chip Wars&lt;/strong&gt;&lt;/a&gt;  (13min 36sec)&lt;/p&gt;

&lt;p&gt;Tech expert Steve Blank’s sprawling opinion piece on how computer chips are quickly becoming one of the most sought after commodities on the planet, and what ramifications that might have on global politics in the near future. According to Blank, “The country that controls [chip] manufacturing can throttle the military and economic power of others.”&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Dev Tools&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/6OEONaiC4BqHm3AbqyfT-_M-8jBsO_A1VFNzt3sucX3WQtuvey8JXQYcKBdBqjybOT5K1wtKvRst100nrTwsnCGPn3z6gvqlUqrCEhE0xLtgHKAxYiv3Yy5kaEFVGSGOPrNvXzf5kehomxD8cPW9wCCfAh80E1l73dQjRg"&gt;&lt;strong&gt;RSS Box&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A handy little tool created by &lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/PIsdXEGpeZtvO57i_DA17SwYopKFFdtMLsdxATpmGguoZF93fyATsEopmU7jJptEDBVn20Lo2Ozj0JpAxDvaDaUPvNiLvMtHL6KDlSOEZy5XLNm40DRuw5tbOMYqoNq9meofqE0MZLDmhhpTP--njpbrcwWQLAPmfcKgUmJw"&gt;Stefan Sundin&lt;/a&gt; that allows you to create RSS feeds for sites that don’t have their own. It supports Twitter, Instagram, Soundcloud, and many other social media sites.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/bSYtqpBg5ex5yHU5cFPriXdeesOxuGMOprlkX6j_M9geo_-LMNVVaGsYJ89W1gW0qinfclJNt9hRwAxYRKlh60Pj5s1Ivw-onx3Qv9oefsTd7WdlogqRpRr9RI2PGq4I5hSuEujVjxsSGqt0zL7b9ZOrC3UfUJ8NuxJM"&gt;&lt;strong&gt;GoatCounter&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Most any modern developer will be familiar with Google Analytics. There are solid alternatives however, which can provide user privacy and a more streamlined interface. GoatCounter is created by the one man team of &lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/JF6YNXXvonnK69rdxMejxc5zgBCq5JBFrEHHn5GQXgqI_il_CNC1eWnFfF6RATnQAxLKduKnILqI3kNmTXLaaR40xbgcVZf3pO3ne7FzkZVPr9QkamvxjIJ2xuZlQPW9hvD_0upKD98ImhW9S3z-ZrtwzDqXRg"&gt;Martin Tournoij&lt;/a&gt;, and is a great example of what can be achieved with an indie made analytics dashboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/ZpMinBRvXFwdve26DxRxCYrWUWxim83BGwOMLTftTG1YUXoby6UpqVlFKCCGwt9EfSBe8azSQrKjOihOP8JcelAZpEjJG98hB1i9m3BFslJjoB2ceoE6l1aNL-_659fc5EELgA9oKIkXH8zaB2zS055YVuCRCAXMvypuNW0suQ"&gt;&lt;strong&gt;98.css&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you miss the dated look of Windows 98’s UI, you’ll be pleasantly surprised by this minimalist CSS framework created by &lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/IE9s4Fu59yF9UCI6C2XeYH2ZyvVM0SFrxcX_dcg9p0TDaChg5toyXjxobN-5Vxjip2iNIVjciLQmAzKPbF6L4diUzu0-WsDx-AMxuZJx_HCrcq4ynIo2F15teGsgZvMaVk8j7pxp0uwcc_fm_qZMw5K6W2LRMA"&gt;Jordan Scales&lt;/a&gt;. Looks like the real thing!&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Fancy Projects&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/hMal2Uwi-4ij-IYagOVk7ptYJLyR0GclifPa5gK48_C6w56PRPhozt5drWyzw0lXjg3g0nWvvBu7_6dQm3cS-wui1ga4xC0o-mrabzSLT81Ry9CgoxiMbNpLFvzouc-ck-WfJIyb-ekVmkjPE5jlPJe4AKdJsKqbogkcok5Aq4lSMd7k"&gt;&lt;strong&gt;Drive and Listen&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A nice little project made by &lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/CM0_bPUe_ReweS7633UCWUIHULcAaVx77erNU6iFQLjuPQP6XrdgCUIR54YrgqvFPLTWZPlfEPROyi8bXLwG0KY4qLp2L9kH9qDQWvUkn-wBS3Luwa59Gn5FZC9Tr7oRP32H-pMjkzy6YLqFp93aHUzvrXaBfZuFeNZTVjkKCJpD"&gt;Erkam Şeker&lt;/a&gt; which combines video footage of driving in a major city, accompanied by the local radio for that city. Simple, elegant, and a great distraction to have on your 2nd screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://4xdm6.r.ah.d.sendibm4.com/mk/cl/f/GF7c3jRiH-g6LRk8xnh6EqwntkmmSAM8bQbtmtZ03c8kF2wQCo_6WERM6LGihZB1DlWjiLq3-j2wfjHBIGkXJQjWUpBEPisEo3rRG3CztHMirmhio4iclow2qQBzc_WfFc8VOLh4Cng1anlyg-DrE1XKKW_f7oz20G2MLMrJTrzCVFw"&gt;&lt;strong&gt;The Evolution of Stock Photography Aesthetics&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A sleek and engaging history of stock photo, touching on change in aesthetics, and the advancements in technology around stock photography since the 1990s.&lt;/p&gt;




&lt;p&gt;&lt;a href="https://thegrind.news/"&gt;&lt;strong&gt;&lt;em&gt;Subscribe to The Grind&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;  &lt;em&gt;to get the best tech and programming stories of the week delivered to your inbox.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Top weekly stories in tech and programming - The Grind: Issue #1</title>
      <dc:creator>Trey Huffine</dc:creator>
      <pubDate>Tue, 16 Jun 2020 20:27:30 +0000</pubDate>
      <link>https://dev.to/treyhuffine/top-weekly-stories-in-tech-and-programming-the-grind-issue-1-3pli</link>
      <guid>https://dev.to/treyhuffine/top-weekly-stories-in-tech-and-programming-the-grind-issue-1-3pli</guid>
      <description>&lt;p&gt;&lt;a href="https://thegrind.news"&gt;&lt;strong&gt;&lt;em&gt;Subscribe to The Grind&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;  &lt;em&gt;to get the best tech and programming stories of the week delivered to your inbox.&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  📈 &lt;strong&gt;Trends in Tech&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://thenewstack.io/microsoft-rust-is-the-industrys-best-chance-at-safe-systems-programming/#"&gt;&lt;strong&gt;Microsoft: Rust Is the Industry’s ‘Best Chance’ at Safe Systems Programming — The New Stack&lt;/strong&gt;&lt;/a&gt;  (4min 23sec)&lt;/p&gt;

&lt;p&gt;Microsoft has publicly stated that they are moving away from C++ in favor of the equally highly performant Rust language. The announcement follows similar adoption at other tech giants including Apple, Google, Dropbx, Cloudflare, and AWS&lt;/p&gt;

&lt;p&gt;&lt;a href="https://venturebeat.com/2020/06/08/facebooks-transcoder-ai-converts-code-from-one-programming-language-into-another/"&gt;&lt;strong&gt;Facebook’s TranscoderAI can transform code to different programming languages&lt;/strong&gt;&lt;/a&gt; (5min 7sec)&lt;/p&gt;

&lt;p&gt;Transcompilation — translating code from one language to another — has been a longstanding necessary evil of developing applications for multiple platforms, or porting apps from one platform to another. Facebook’s new tool could be the beginning steps in creating a Rosetta Stone of code, where languages can seamlessly be swapped with each other.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://venturebeat.com/2020/06/11/openai-launches-an-api-to-commercialize-its-research/"&gt;&lt;strong&gt;OpenAI launches an API to commercialize its research&lt;/strong&gt;&lt;/a&gt; (5min 13sec)&lt;/p&gt;

&lt;p&gt;The company OpenAI has created an API, which constitutes a big step towards their goal of providing the power of natural language processing to the entire development community. You can request to join the API’s waitlist here.&lt;/p&gt;




&lt;h3&gt;
  
  
  🔐 Security
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://arstechnica.com/information-technology/2020/06/honda-halts-production-at-some-plants-after-being-hit-by-a-cyberattack/"&gt;&lt;strong&gt;Honda halts production at some plants after being hit by a cyberattack&lt;/strong&gt;&lt;/a&gt; (2min 18sec)&lt;/p&gt;

&lt;p&gt;Honda was forced to suspend factory operations in multiple plants in the US and abroad due to a ransomware infection, echoing a similar attack against the company in 2017 using the now infamous WannaCry worm.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://techcrunch.com/2020/06/04/google-china-iran-trump-biden/"&gt;&lt;strong&gt;Google says Iranian, Chinese hackers targeted Trump, Biden campaigns&lt;/strong&gt;&lt;/a&gt; (2min 19sec)&lt;/p&gt;

&lt;p&gt;In an official statement from Google, researchers found the Biden campaign was targeted by a Chinese group, and the Trump campaign was targeted by an Iranian group. Though neither attacked appears to have succeeded, this is surely not the last attempt we’ll see against American political campaigns as the general election approaches.&lt;/p&gt;




&lt;h3&gt;
  
  
  📚 &lt;strong&gt;Tech &amp;amp; Society&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://venturebeat.com/2020/06/12/researchers-find-racial-discrimination-in-dynamic-pricing-algorithms-used-by-uber-lyft-and-others/"&gt;&lt;strong&gt;Researchers find racial discrimination in ‘dynamic pricing’ algorithms used by Uber, Lyft, and others&lt;/strong&gt;&lt;/a&gt; (7min 11sec)&lt;/p&gt;

&lt;p&gt;Turns out the cost of your last commute might have as much to do with your skin as much as the distance or time of day you traveled. An interesting morality tale about what can happen when machine learning is applied to social data.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://arstechnica.com/tech-policy/2020/06/section-230-the-internet-law-politicians-love-to-hate-explained/"&gt;&lt;strong&gt;The Internet’s most important — and misunderstood — law, explained&lt;/strong&gt;&lt;/a&gt; (17min 57sec)&lt;/p&gt;

&lt;p&gt;When Twitter made the decision to start fact checking Donald Trump’s tweets recently, Twitter CEO Jack Dorsey took a bold stance against misinformation. Trump hopes to seek legal revenge by attacking the 1996 law Secion 230, which gives social media companies virtually zero accountability for the content on their platforms. But interestingly, Joe Biden feels the same way as Trump does about this law. Take a deeper dive to understand what this law is, how it might change, and how these changes could affect you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.forbes.com/sites/billybambrough/2020/06/10/pentagon-documents-reveal-the-us-has-planned-for-a-bitcoin-rebellion/#5da2cf184cc0"&gt;&lt;strong&gt;Pentagon Documents Reveal The U.S. Has Planned For A Bitcoin Rebellion&lt;/strong&gt;&lt;/a&gt; (2min 46sec)&lt;/p&gt;

&lt;p&gt;Official documents from the U.S. Department of Defense describe a Robin Hood-esque organization called Zbellion, that converts stolen money into bitcoin. They then turn it around to fund a global anti-establishment movement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://decrypt.co/31906/activists-rally-save-internet-archive-lawsuit-threatens"&gt;&lt;strong&gt;Activists rally to save Internet Archive as lawsuit threatens site&lt;/strong&gt;&lt;/a&gt; (4min 43sec)&lt;/p&gt;

&lt;p&gt;The Internet Archive is a Non Profit organization, and the site hosts a treasure trove of culture artifacts of all sorts, including millions of movies, books, software, and audio recordings. When it temporarily suspended the waitlist feature to help address the problem of COVID-19 driven shut downs of public libraries, publishing giants Hachette, HarperCollins, Penguin Random House, and Wiley sued over it. And they’re seeking damages at $210,000,000,000 (that’s two hundred and ten billion dollars). That would be game over for the Archive.&lt;/p&gt;




&lt;h3&gt;
  
  
  🕴 &lt;strong&gt;Tech Business&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.axios.com/facebook-establishing-a-venture-arm-to-invest-in-startups-91d9ee71-2282-4032-8f31-45b861a6ba9c.html"&gt;&lt;strong&gt;Facebook establishing VC arm to invest in startups&lt;/strong&gt;&lt;/a&gt; (3min 24sec)&lt;/p&gt;

&lt;p&gt;Facebook is making a big push to fund startups, hoping to get the jump on the next big thing before it blows up.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.axios.com/zoom-closes-chinese-user-account-tiananmen-square-f218fed1-69af-4bdd-aac4-7eaf67f34084.html"&gt;&lt;strong&gt;Zoom closed account of U.S.-based Chinese activist “to comply with local law”&lt;/strong&gt;&lt;/a&gt; (2min 58sec)&lt;/p&gt;

&lt;p&gt;Zoom shut down Chinese activists living in America, for holding a meeting to remember the Tiananmen Square Massacre. This was likely a move to appease China’s law prohibiting the discussing of the famous pro democracy Tiananmen protests that occurred in 1989.&lt;/p&gt;




&lt;h3&gt;
  
  
  ⚕ &lt;strong&gt;Health&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://kevq.uk/is-dark-mode-such-a-good-idea/"&gt;&lt;strong&gt;Is Dark Mode Such A Good Idea?&lt;/strong&gt;&lt;/a&gt; (4min 33sec)&lt;/p&gt;

&lt;p&gt;I like dark mode. At this moment, I’m tying this on my laptop on an app using dark mode. Even though I haven’t come back from the dark side just yet, this short, educational read has me second guessing this choice for the first time since dark mode has been an option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://kenreitz.org/essays/the-reality-of-developer-burnout"&gt;&lt;strong&gt;The Reality of Developer Burnout&lt;/strong&gt;&lt;/a&gt; (4min 48sec)&lt;/p&gt;

&lt;p&gt;From a few years ago, but still highly relevant today. Most of us have experienced burnout before. Understanding how to notice it, and how to handle deal without before it’s a problem, can save you from a boatload of stress, illness, fatigue, and premature gray hairs. Solid strategies and great practical advice here.&lt;/p&gt;




&lt;h3&gt;
  
  
  🛠 &lt;strong&gt;Dev Tools&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://ikonate.com/"&gt;&lt;strong&gt;Ikonate&lt;/strong&gt;&lt;/a&gt; — Fully customizable &amp;amp; accessible vector icons&lt;/p&gt;

&lt;p&gt;This site is a wonderful tool for generating a set of icons for your next project, free of charge. Customize size, border density and color to match your design or idea.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gridjs.io/"&gt;&lt;strong&gt;Grid.js&lt;/strong&gt;&lt;/a&gt; — Grid.js is a Free and open-source HTML table plugin written in TypeScript&lt;/p&gt;

&lt;p&gt;An open source project that sets out to solve the all-too-common problem of developing robust, responsive, reusable, data driven tables. Grid.js provides a simple API, and boasts easy extensibility.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://news.ycombinator.com/item?id=23468193"&gt;&lt;strong&gt;Discuss&lt;/strong&gt;&lt;/a&gt;: Which tools have made you a better programmer?&lt;/p&gt;

&lt;p&gt;A great thread, where developers from all walks of life discuss the tools that got them to where they are now. It’s a great conversation to learn about a new tool that might make a big difference for you, or share what tools you’ve benefited from over the course of your career.&lt;/p&gt;




&lt;h3&gt;
  
  
  ✨ &lt;strong&gt;Fancy Projects&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://futuremood.com/"&gt;&lt;strong&gt;Futuremood&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have no idea if the AURAFLOW 5000 sunglasses really alter your mood (the company promises it’s been “scientifically proven” 😂), but we are sure that Futuremood knows how to make an eye catching website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://thinkbear.net/"&gt;&lt;strong&gt;Think Bear&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The portfolio of digital designer Jens Nielsen has a beautifully minimalist modern design. He uses the glamorous Bigilla font to great effect, set within a restrained, black, and yellow palette. Attractive and elegant.&lt;/p&gt;

&lt;h3&gt;
  
  
  Meme of the Week
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rGco9Ywm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1600/1%2At7ZTTu68uUpBb0x0OlCLMg.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rGco9Ywm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/1600/1%2At7ZTTu68uUpBb0x0OlCLMg.jpeg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Does anyone do social distancing better than programmers? Probably not. We’ve had a lot of practice, and we’re up to the challenge.&lt;/em&gt; 💪🤓&lt;/p&gt;




&lt;p&gt;&lt;a href="https://thegrind.news"&gt;&lt;strong&gt;&lt;em&gt;Subscribe to The Grind&lt;/em&gt;&lt;/strong&gt;&lt;/a&gt;  &lt;em&gt;to get the best tech and programming stories of the week delivered to your inbox.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>React &amp; Redux Tutorial — Build a Hacker News Clone</title>
      <dc:creator>Trey Huffine</dc:creator>
      <pubDate>Tue, 09 Oct 2018 13:25:07 +0000</pubDate>
      <link>https://dev.to/treyhuffine/react--redux-tutorialbuild-a-hacker-news-clone-23m4</link>
      <guid>https://dev.to/treyhuffine/react--redux-tutorialbuild-a-hacker-news-clone-23m4</guid>
      <description>&lt;h4&gt;
  
  
  Build a production React project using Redux and Styled Components. Deploy the app using GitHub pages.
&lt;/h4&gt;

&lt;p&gt;This is a step-by-step solution for the &lt;a href="https://gitconnected.com/hacktoberfest" rel="noopener noreferrer"&gt;gitconnected Hacktoberfest project&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In this tutorial, we are going to build a production-quality Hacker News clone. We will walk through the steps of initializing the application, adding &lt;a href="https://redux.js.org/" rel="noopener noreferrer"&gt;Redux&lt;/a&gt; to manage state, building the UI in React, and deploying the solution to GitHub pages. We will style the application using &lt;a href="https://www.styled-components.com/" rel="noopener noreferrer"&gt;styled-components&lt;/a&gt; and call the public &lt;a href="https://github.com/HackerNews/API" rel="noopener noreferrer"&gt;Hacker News API&lt;/a&gt; using the &lt;a href="https://github.com/axios/axios" rel="noopener noreferrer"&gt;axios&lt;/a&gt; library.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/gitconnected/hacker-news-reader" rel="noopener noreferrer"&gt;&lt;strong&gt;GitHub — View Source&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://chrome.google.com/webstore/detail/hacker-news/hknoigmfpgfdkccnkbfbjfnocoegoefe?pli=1&amp;amp;authuser=1" rel="noopener noreferrer"&gt;&lt;strong&gt;Download Hacker News Clone as a Chrome Extension (it’s awesome!)&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AUfu70cs08PyXKaM2Wb6D0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AUfu70cs08PyXKaM2Wb6D0w.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you prefer video, you can also follow along with this tutorial on our YouTube. &lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/oGB_VPrld0U"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  Initialize the Project
&lt;/h3&gt;

&lt;p&gt;We will use &lt;a href="https://github.com/facebook/create-react-app" rel="noopener noreferrer"&gt;create-react-app&lt;/a&gt; to start the project. This allows us to build React applications without worrying about the configuration. First, make sure you have create-react-app installed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i -g create-react-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Initialize your project by running the command below. create-react-app installs all the essential packages to build a React application and it has default scripts to manage development and building for production.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;create-react-app hn-clone
# Wait for everything to finish... 
cd hn-clone
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now let’s install the core packages that we will need. I’m using yarn but if you have npm just replace the yarn add with npm install.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn add redux styled-components react-redux redux-logger redux-thunk axios
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;create-react-app uses the NODE_PATH environment variable to create absolute paths. We can declare environment variables in the .env file and create-react-app &lt;a href="https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-development-environment-variables-in-env" rel="noopener noreferrer"&gt;will recognize it&lt;/a&gt; and apply it using the &lt;a href="https://www.npmjs.com/package/dotenv" rel="noopener noreferrer"&gt;dotenv library&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Create a .env file using the touch command 

touch .env 

# Inside the .env file add: 
# NODE\_PATH=src
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you are unfamiliar with this pattern, it will make more sense when we start building the application. What it allows you to do is directly import files without needing trace your folder paths. Something like this ../../components/List becomes components/List — much more convenient.&lt;/p&gt;

&lt;h3&gt;
  
  
  Folder Structure
&lt;/h3&gt;

&lt;p&gt;Inside src, let’s update our folder structure to be more scalable and usable for a production application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AeCWgjBOXcPZ_9MIQYeSzFQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AeCWgjBOXcPZ_9MIQYeSzFQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;components: This folder will hold all of our React components (both container and presentational).&lt;/li&gt;
&lt;li&gt;services: Services allow you to connect to APIs (ex. using axios to call the HN API) or provide extended functionality to the application (ex. adding Markdown support).&lt;/li&gt;
&lt;li&gt;store: The store holds all of our logic for Redux and managing state.&lt;/li&gt;
&lt;li&gt;styles: Inside the styles folder, we declare variables, templates, and reusable style patterns that can be shared in components.&lt;/li&gt;
&lt;li&gt;utils: Helper functions that can be reused throughout the application.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;There are 2 aspects about this folder structure worth noting:&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Our application only has 1 route which is the root /. If we had multiple routes, I would also use react-router and create a pages folder for page-level components.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I don’t use a separate containers folder for connecting to Redux. I’ve found this adds unnecessary complexity and confusion because developers will import from the incorrect location (containers when they wanted components or vice versa). Having a single source of truth for imports works better in a practical context in my experience.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;

&lt;p&gt;Since we are using styled-components, we can delete the index.css file and the App.css files. Now we can add some boilerplate base styling.Inside the src/styles folder create files named globals.js and palette.js.&lt;/p&gt;

&lt;p&gt;Palette will contain the groupings of colors we will use in the application and create the themes for our UI. Add the following code to src/styles/palette.js.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AZr48tSzc6mcC981FWblX3g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AZr48tSzc6mcC981FWblX3g.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The globals.js is used to generate our default base styling shared across the app. The injectGlobal method from styled-components should be used sparingly, but it is useful for app-level styles.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;NOTE: The&lt;/em&gt; &lt;em&gt;injectGlobal API is being replaced by&lt;/em&gt; &lt;em&gt;createGlobalStyle in styled-components v4.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AWaP3vgmtvQxpQQ0hC9j3og.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AWaP3vgmtvQxpQQ0hC9j3og.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside the components folder create an App folder. Move the default CRA files to this location and rename App.js to index.js. This allows us to import components/App.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AjCIpQi-8uiCyDejD9yRTYg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AjCIpQi-8uiCyDejD9yRTYg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, open src/index.js (the root file of your project) and update the content to use our new folder structure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AJ4iZthOacnUvdXpGcKXWHw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AJ4iZthOacnUvdXpGcKXWHw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice that since we set the NODE_PATH previously, we can import App using components/App and setGlobalStyles using styles/globals. Execute the setGlobalStyles() function to apply them to the app.&lt;/p&gt;

&lt;p&gt;Now we’re ready to start our development environment with our core structure in place. Run the following command to start the app, and you should see it on &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;. Not much to look at yet, but we’ll get there :)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AkerMzK7dPowXiHRJx90Zfg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AkerMzK7dPowXiHRJx90Zfg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Adding Redux to Your React App
&lt;/h3&gt;

&lt;p&gt;Inside our src/store folder, create an index.js file a reducer.js file, and a middleware.js file. Let’s also initialize an app feature to manage state for the app.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AWiTf2X7rt16a_YhDrKqMcw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AWiTf2X7rt16a_YhDrKqMcw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;From my experience, in production Redux is more manageable if you group by feature as opposed to functionality, similar to the&lt;/em&gt; &lt;a href="https://medium.freecodecamp.org/scaling-your-redux-app-with-ducks-6115955638be" rel="noopener noreferrer"&gt;&lt;em&gt;Ducks approach&lt;/em&gt;&lt;/a&gt;&lt;em&gt;. In the “grouping by functionality” approach where all actions, reducers, etc live in a separate folder, it can be increasingly difficult to navigate between files when the number grows in production. When you group by feature, you always have the files you need in a single, compact location.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Inside the index.js we’ll create a configureStore function which is how we will initialize Redux in the application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A81tI96h93hovxfBlCc0lgA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A81tI96h93hovxfBlCc0lgA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We use createStore from Redux which builds the initial store. We import reducer from our root reducer file, and we import the middleware from our middleware configuration file. The initialState will be supplied at runtime and passed to our function. In production, we could be managing complex functionality such as SSR or passing data from the server on the initial load, and this allows us to handle that gracefully and abstract it away from the store creation.&lt;/p&gt;

&lt;p&gt;Inside the reducer.js file, create the root reducer using combineReducers. This function combines all your reducer functions to build a single state tree.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AB7Vfn2aQ8xbFRG5ihnVpnw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AB7Vfn2aQ8xbFRG5ihnVpnw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next we can create our middleware in the middleware.js file. A middleware is a function that the dispatched action must pass through every time. It is used to extend the functionality of Redux. Add the following code to the file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AgHwwDTE5o8UomnMrvlUuKw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AgHwwDTE5o8UomnMrvlUuKw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will also build our first reducer. Inside src/store/app, create reducer.js and actions.js files. We’ll add functionality to toggle between day mode and night mode, so let’s create an action to manage this feature. Inside src/stre/app/actions.js, add the following code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AEaIas2IFck_z3EwKdeFe2A.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AEaIas2IFck_z3EwKdeFe2A.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We create an actionTypes object to hold our action-type constants. These will be used in the reducer to match the type with the state change. We also create an actions object which holds the functions we will dispatch from our application to create state changes. Every action will have a type and a payload.&lt;/p&gt;

&lt;p&gt;Finally, we can create our reducer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AS4kGs9EADhwpWLr_0cv08Q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AS4kGs9EADhwpWLr_0cv08Q.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When we dispatch a SET_THEME action, it will update the theme value of the state to the value inside the payload. The payload will be an object that has the form { theme: 'value' }. When we spread … the payload object, the keys of the state will be replace the keys in ...state that match — in this case theme.&lt;/p&gt;

&lt;p&gt;For the brevity of this article, if you need a further understanding of the fundamentals of Redux, &lt;a href="https://egghead.io/courses/getting-started-with-redux" rel="noopener noreferrer"&gt;check out this free video&lt;/a&gt; by the creator of Redux, &lt;a href="https://medium.com/u/a3a8af6addc1" rel="noopener noreferrer"&gt;Dan Abramov&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Return to the src/index.js, and now we can update it to connect our app to Redux. Add an import for Provider and update your render method to look like the following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A3n6O0LIUSTCVwFt8uduNMw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A3n6O0LIUSTCVwFt8uduNMw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that should be all you need to get Redux integrated with the app! Return to &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;, and you should see the following when you open your Chrome console.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2APg3Jfden_UothgVAoavi2Q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2APg3Jfden_UothgVAoavi2Q.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Build the UI with React and Styled Components
&lt;/h3&gt;

&lt;p&gt;Now that Redux is initialized, we can begin working on our UI. First, let’s declare some more style constants that we’ll use inside our components. In this case, we’ll create a mediaQueries file to hold constants to make it easy to add mobile responsiveness to our app. Create a src/styles/mediaQueries.js file, and the following code to each.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AP2P94sWY44UGWgEmnp93fg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AP2P94sWY44UGWgEmnp93fg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Return to our src/components/App folder. Inside index.js, we update the content to be the following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ACKXnrGJRjg0KF_h8k8nXCw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ACKXnrGJRjg0KF_h8k8nXCw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We use the ThemeProvider component from styled-components. This provides functionality enables us to pass a “theme” as a prop to all styled components that we build. We’ll initialize it here as the colorsDark object.&lt;/p&gt;

&lt;p&gt;App contains components that we have not built yet, so let’s do that now. First, let’s build our styled components. Create a file styles.js inside theApp folder and add the following code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AgVQdtVhtJ2Z6IJYYa5sgXA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AgVQdtVhtJ2Z6IJYYa5sgXA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This creates div for the page which we call Wrapper and an h1 for the page as the component Title. The styled-components syntax creates a component using the HTML element that you specify after after the styled object. You use a string to define the CSS properties of that component.&lt;/p&gt;

&lt;p&gt;Notice on line 20, we use our theme prop. A function containing props as an argument is injected by styled-components into the styling string allowing us to extract properties or add logic to construct styles, abstracting this away from the component that uses them.&lt;/p&gt;

&lt;p&gt;Next we create our List component which will contain our Hacker News stories. Create a src/components/List folder and add an index.js and styles.js files. Inside index.js add the following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A4g_MVApQD8hbj_DRoLVF1g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A4g_MVApQD8hbj_DRoLVF1g.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And inside the styles.js we create the ListWrapper. We set the background-color using the theme prop which we get from the ThemeProvider component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A3936mELdgni4HKpqpLcR0w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A3936mELdgni4HKpqpLcR0w.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, we create our ListItem component which will display the individual stories. Create a src/components/ListItem folder and an index.js and style.js files.&lt;/p&gt;

&lt;p&gt;We want our UI to mimic that of Hacker News. For now, we will use fake data inside our ListItem to mock this. Add the following code to the index.js file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AUySO57sHLlWpX-6LIY79Vw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AUySO57sHLlWpX-6LIY79Vw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each story has a title, author, score, time of post, source URL, and comment count. We initialize these to test values so we can see how it looks in our UI. The rel="nofollow noreferrer noopener" is added for &lt;a href="https://support.performancefoundry.com/article/186-noopener-noreferrer-on-my-links" rel="noopener noreferrer"&gt;security reasons&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In the styles.js file, add the following code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ADfFmD06YGcaZ8O0kMfTwtg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ADfFmD06YGcaZ8O0kMfTwtg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that should be the basic UI components that we need! Return to your browser and you should have a single item feed with fake data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AU0d5JVmGjTZfttpvnhcz4w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AU0d5JVmGjTZfttpvnhcz4w.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Making API Calls with Redux and Axios
&lt;/h3&gt;

&lt;p&gt;It’s time to add real data to our app. We will call the Hacker News API using theaxios request library. Calling an API will introduce a “&lt;a href="https://en.wikipedia.org/wiki/Side_effect_%28computer_science%29" rel="noopener noreferrer"&gt;side effect&lt;/a&gt;” to our application which means that it will modify the state from a source outside of our local environment.&lt;/p&gt;

&lt;p&gt;API calls are considered side effects because they will introduce oustide data to our state. Other examples of side effects are interacting with localStorage in the browser, tracking user analytics, connecting to a web socket, and many more. There multiple libraries to manage side effects in Redux apps, from the simple &lt;a href="https://github.com/reduxjs/redux-thunk" rel="noopener noreferrer"&gt;redux-thunk&lt;/a&gt; to the more complex &lt;a href="https://github.com/redux-saga/redux-saga" rel="noopener noreferrer"&gt;redux-saga&lt;/a&gt;. However, they all serve the same purpose — allow Redux to interact with the outside world. redux-thunk is one of the simplest libraries to use in that it allows you dispatch a JavaScript function in addition to action objects. This is the exact functionality we need to use axios by utilizing a function that manages the returned promise from the API call.&lt;/p&gt;

&lt;p&gt;Inside our src/services folder, create an Api.js file and hackerNewsApi.js. The axios library is incredibly powerful and extensible. The Api.js will contain the configuration to make axios requests easy. We won’t copy the entire file here, but you can get the content from &lt;a href="https://github.com/gitconnected/hacker-news-reader/blob/master/src/services/Api.js" rel="noopener noreferrer"&gt;source code&lt;/a&gt; which uses sensible defaults for basic API requests that we need in this project.&lt;/p&gt;

&lt;p&gt;Inside the src/services/hackerNewsApi.js file, we will define the functions to make requests to the Hacker News API. The &lt;a href="https://github.com/HackerNews/API" rel="noopener noreferrer"&gt;documenation&lt;/a&gt; shows that will use the /v0/topstories endpoint to get a list of IDs, and the /v0/items/ endpoint to get the data for each individual story.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AfJz7VjaaonQbPsCYgbHrTQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AfJz7VjaaonQbPsCYgbHrTQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The /v0/topstories endpoint returns all top story IDs which is ~400–500 items in the list. Since we fetch the data for each story individually, it would kill performance to then fetch all 500 individual items immediately. To solve this, we only fetch 20 stories at a time. We .slice() the story ID array based on the current page and return that section of story items. Since we call the the /v0/item/ for each story ID, we use a Promise.all to condense the response promises into a single array resolving to one .then() and preserving the ranking form the order of the story IDs.&lt;/p&gt;

&lt;p&gt;To manage the state of the stories inside our application, we will create a story reducer. Create a src/store/story folder and inside it add a reducer.js file and an actions.js file. Inside the actions.js file, add the following code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A25TV9sa-gTIT3Wodb8ptQQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A25TV9sa-gTIT3Wodb8ptQQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We create actionTypes for the request, success, and failure states for our story ID and story items API calls.&lt;/p&gt;

&lt;p&gt;Our actions object will contain thunk functions which manages the request. By dispatching functions instead an action object, we are able to dispatch actions at different points during the request lifecycle.&lt;/p&gt;

&lt;p&gt;The function getTopStoryIds will make the API call to get the full list of stories. In the success callback of getTopStoryIds, we dispatch the fetchStories action to retrieve the first page of results for story items.&lt;/p&gt;

&lt;p&gt;When our API calls successfully return, we dispatch the success action, allowing us to update our Redux store with the new data.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;A basic implementation of the thunk package only uses a few lines of code. It requires knowledge of Redux middleware to understand it fully, but from the code we can see that if our&lt;/em&gt; &lt;em&gt;action is a&lt;/em&gt; &lt;em&gt;function instead of an&lt;/em&gt; &lt;em&gt;object, we execute that function and pass&lt;/em&gt; &lt;em&gt;dispatch as the argument.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AzzZcmCcNFymcha5RMfcftg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AzzZcmCcNFymcha5RMfcftg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we need to create the reducer to store the data in our Redux state. Inside the src/store/story/reducer.js file, add the following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A1lx_NoFojzqqH-dMNbr_xw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A1lx_NoFojzqqH-dMNbr_xw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For the FETCH_STORY_IDS_SUCCESS action type, we spread the current state and payload. The only key/value inside the payload is storyIds, which will then update the state to the new value.&lt;/p&gt;

&lt;p&gt;For the FETCH_STORIES_SUCCESS action type, we add the new stories to the previously created list of stories which will keep them in order as we fetch more pages. In addition, we increment the page and set the isFetching state to false.&lt;/p&gt;

&lt;p&gt;Now that we are managing the state of our stories in Redux, we can display this data using our components.&lt;/p&gt;

&lt;h3&gt;
  
  
  Connect the React App to the Redux Store
&lt;/h3&gt;

&lt;p&gt;By using the react-redux bindings, we are able to connect our components to the store and receive Redux state as props. Then any time there is an update to the store, the props will also change causing a re-render of our components which will update the UI.&lt;/p&gt;

&lt;p&gt;We also pass functions as props to our components that dispatch actions. When we call these functions inside our component, it can trigger state changes in our Redux store.&lt;/p&gt;

&lt;p&gt;Let’s see how we manage this in our application. Return to the src/components/App folder create an App.js file and copy and paste the content from the src/components/App/index.js to the new App.js file. Inside the index.js we will connect the App component to Redux. Add the following code to the index.js file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2Ac_61z20YchuagvsYmImxdQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2Ac_61z20YchuagvsYmImxdQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The mapStateToProps is a function that takes the Redux state as an argument and returns an object that is passed as props to the connected component. For App, we need the array of stories, the current page, the array of storyIds, and the isFetching indicator.&lt;/p&gt;

&lt;p&gt;The mapDispatchToProps is a function that takes the dispatch function as an argument and returns an object of functions passed as props to our Component. We create a function fetchStoriesFirstPage that will disptach the action to fetch story IDs (and then fetches the first page of story items).&lt;/p&gt;

&lt;p&gt;We utilize these props inside our App.js file. First we add a componentDidMount so that the stories are fetched once the component is in the DOM. This pass the stories prop to our List component&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AWdwfnfIqzt3gvOiLYrqlUg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AWdwfnfIqzt3gvOiLYrqlUg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside src/components/List/index.js we map over the stories array and create an array of ListItem components. We set the key to the story ID and spread the story object …story — this pass all the values of the object as individual props to the component. The key prop is required for components mounted as an array so that React can be faster when updating them during a render.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A7eEOEtZMMaefxKwhIjvkkw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A7eEOEtZMMaefxKwhIjvkkw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we look at the screen now, we should have 20 list items but still using the hard-coded data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AyUTZNu2i3K8_4kdnFUsXhA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AyUTZNu2i3K8_4kdnFUsXhA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We need to update our ListItem to use the values from the stories. Also in Hacker News, it displays the time since the story was published and the domain of the source. We will install the &lt;a href="https://www.npmjs.com/package/timeago.js" rel="noopener noreferrer"&gt;timeago.js&lt;/a&gt; and &lt;a href="https://www.npmjs.com/package/url" rel="noopener noreferrer"&gt;url&lt;/a&gt; packages to help calculate these values since they are not passed directly from the API. Install them using the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn add timeago.js url
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We will also write helper functions to build these values. Copy and the files from the src/utils folder in the &lt;a href="https://github.com/gitconnected/hacker-news-reader/tree/master/src/utils" rel="noopener noreferrer"&gt;source code&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now we can update our the src/components/ListItem/index.js file to the following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AA-hGJAgOxanZPWjcOM6SRw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AA-hGJAgOxanZPWjcOM6SRw.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And with that step, we are now displaying the first 20 top Hacker News items in our app — very cool!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ACWm1RlXAwNatofoYIUTIag.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ACWm1RlXAwNatofoYIUTIag.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Paginating Requests with Infinite Scroll
&lt;/h3&gt;

&lt;p&gt;Now we want to fetch an additional page as the user scrolls down the screen. Recall that every time we successfully fetch stories, we increment the page number in the store, and so after the first page is received, our Redux store should now read page: 1. We need a way to dispatch the fetchStories action on scroll.&lt;/p&gt;

&lt;p&gt;To implement infinite scrolling, we’ll use the react-infinite-scroll-component. We will also want a way to determine if we have more pages to load and we can do this in a selector using &lt;a href="https://www.npmjs.com/package/reselect" rel="noopener noreferrer"&gt;reselect&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn add react-infinite-scroll-component reselect
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;First we will build our selector to calculate if more stories exist. Create a src/store/story/selectors.js file. To determine if more stories exist, we see if the array length of the storyIds in our Redux store has the same length as the stories array. If the stories array is shorter, we know that there are more pages.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A9BZsfoH8vkhyo8kModYwxQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2A9BZsfoH8vkhyo8kModYwxQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside the src/components/App/index.js container, we import the hasMoreStoriesSelector and add a hasMoreStories key to our mapStateToProps. Also, add the fetchStories action to our mapDispatchToProps so we can load them as we scroll.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AUH_L2Rddr9lbR40j-N-Agg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AUH_L2Rddr9lbR40j-N-Agg.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We will want a loading animation to show while we wait on our API request. Create a src/components/Loader folder and the index.js and styles.js files. We want our animation to be 3 fading dots.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2An3ITZcnQidyQ3dBVlSVyHw.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2An3ITZcnQidyQ3dBVlSVyHw.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Inside the styles.js file add the following code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AI_2jL9IWId4N2ghr82KSoA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AI_2jL9IWId4N2ghr82KSoA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes" rel="noopener noreferrer"&gt;@keyframes&lt;/a&gt; API is a CSS technique to define animations. The Above code shows the abstraction for it in Styled Components. We will have 3 dots on the screen that have their opacity start at 0.2, increase to 1, and then return to 0.2. We add an animation delay to the second and third dot which gives the offset bouncing appearance.&lt;/p&gt;

&lt;p&gt;Our Loader component will just be our Animation styled component with 3 spans containing periods.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AOEvcjnFwj7x6OMsue2rTKQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AOEvcjnFwj7x6OMsue2rTKQ.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we are ready to add the functionality to our list. Import the infinite scroll module and our Loader in the App component. We will also create a fetchStories callback that will call the fetchStories prop to dispatch the request for the next page. We only call the fetchStories dispatch prop if the isFetching is false. Otherwise we could fetch the same page multiple times. Your src/components/App/App.js should now look like the following.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AFPavhHcReHylbh6qVythUA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AFPavhHcReHylbh6qVythUA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As we scroll down the page, the InfiniteScroll component will call this.fetchStories as long as hasMoreStories is true. When the fetchStories API request returns, the new stories are appending to stories array, adding them to the page.&lt;/p&gt;

&lt;p&gt;With this functionality, you can now scroll through the entire list of top stories! &lt;em&gt;high fives&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Your Final Challenge
&lt;/h3&gt;

&lt;p&gt;At the beginning of the tutorial, we initialized a theme property in our App reducer. Now I’ll leave it up to you implement the toggle functionality on your own. You will want to add a click event in some component that dispatches the setTheme action and toggles between light and dark. You will want to have a ternary condition on your ThemeProvider component that will pass colorsDark if state.app.theme === 'dark', otherwise use colorsLight.&lt;/p&gt;

&lt;p&gt;If you get stuck, refer to the &lt;a href="https://github.com/gitconnected/hacker-news-reader" rel="noopener noreferrer"&gt;source code&lt;/a&gt; to see our implementation, &lt;a href="https://community.gitconnected.com/" rel="noopener noreferrer"&gt;join our Slack and as for help&lt;/a&gt;, and &lt;a href="https://chrome.google.com/webstore/detail/hacker-news/hknoigmfpgfdkccnkbfbjfnocoegoefe?authuser=1" rel="noopener noreferrer"&gt;try it out on our working solution&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deploying to GitHub Pages
&lt;/h3&gt;

&lt;p&gt;The final step to any production app is actually pushing it to production. Since all of our functionality is on the client, we can deploy it as a static site for free using &lt;a href="https://pages.github.com/" rel="noopener noreferrer"&gt;GitHub Pages&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Commit all your code and push it to GitHub. I named my repo hn-clone. &lt;a href="https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/" rel="noopener noreferrer"&gt;Follow this guide&lt;/a&gt; if you need help with creating the repo and uploading the code.&lt;/p&gt;

&lt;p&gt;Now use the following steps to host it on GitHub Pages:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add "homepage": "http://.github.io/" to your package.json. Replace  and  with the values that you used — my values would be treyhuffine and hn-clone.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ACj1S_3wEglnhtgfyBC6s7Q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2ACj1S_3wEglnhtgfyBC6s7Q.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install gh-pages as a dev dependency
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn add -D gh-pages
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add 2 scripts to your package.json
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"predeploy": "npm run build","deploy": "gh-pages -d build"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AEvO5yeQ-V3cFxf9-bOyANA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AEvO5yeQ-V3cFxf9-bOyANA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Finally, run yarn deploy and visit the URL that you specified in the homepage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AjPe2jesKJwjTH13RIH0HWA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fproxy%2F1%2AjPe2jesKJwjTH13RIH0HWA.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And now you have a Hacker News clone in production! &lt;em&gt;double high five&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;This covers the essential functionality required to build the Hacker News clone. The &lt;a href="https://github.com/gitconnected/hacker-news-reader" rel="noopener noreferrer"&gt;source code&lt;/a&gt; has a few additional features and is continuing to be updated, so check there for some inspiration to continue building out the app and learn more React.&lt;/p&gt;

&lt;p&gt;Don’t forget to &lt;a href="https://chrome.google.com/webstore/detail/hacker-news/hknoigmfpgfdkccnkbfbjfnocoegoefe?authuser=1" rel="noopener noreferrer"&gt;download the Chrome Extension&lt;/a&gt; and visit &lt;a href="https://gitconnected.com/" rel="noopener noreferrer"&gt;gitconnected.com to join the developer community&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Originally published at&lt;/strong&gt; &lt;a href="https://gitconnected.com/courses/learn-react-redux-tutorial-build-a-hacker-news-clone" rel="noopener noreferrer"&gt;&lt;strong&gt;gitconnected.com - The Developer Community&lt;/strong&gt;&lt;/a&gt; &lt;strong&gt;.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>hacktoberfest</category>
      <category>webdev</category>
      <category>react</category>
    </item>
    <item>
      <title>Hacktoberfest React Project</title>
      <dc:creator>Trey Huffine</dc:creator>
      <pubDate>Wed, 03 Oct 2018 15:18:24 +0000</pubDate>
      <link>https://dev.to/gitconnected/hacktoberfest-react-project-28ee</link>
      <guid>https://dev.to/gitconnected/hacktoberfest-react-project-28ee</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fragi6l42chbxhcmgporn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fragi6l42chbxhcmgporn.png" alt="Hacktoberfest" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Hacktoberfest 2018 Project
&lt;/h1&gt;

&lt;h4&gt;
  
  
  Build a Hacker News clone using React and Redux. Collaborate with other developers.
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://gitconnected.com/hacktoberfest" rel="noopener noreferrer"&gt;Learn More &amp;gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Overview
&lt;/h2&gt;

&lt;p&gt;A Hacker News clone (in night mode!) using all open source technology.&lt;/p&gt;

&lt;p&gt;Try it out: &lt;a href="https://chrome.google.com/webstore/detail/hacker-news/hknoigmfpgfdkccnkbfbjfnocoegoefe?pli=1&amp;amp;authuser=1" rel="noopener noreferrer"&gt;Download the Chrome Extension&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Website: &lt;a href="https://gitconnected.com/hacktoberfest" rel="noopener noreferrer"&gt;View on gitconnected&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/gitconnected/hacker-news-reader" rel="noopener noreferrer"&gt;Follow the Source Code&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/aTimQHf4zlM"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Hacktoberfest 2018 is underway! Join the developer community from &lt;a href="https://gitconnected.com" rel="noopener noreferrer"&gt;gitconnected&lt;/a&gt; in working together to build a Hacker News clone for your Hacktoberfest project. Use your favorite frontend library (or follow along with our solution using React) and utilize the open source Hacker News API for your data.&lt;/p&gt;

&lt;p&gt;Our community will be collaborating and working together to help everyone become a better developer. Join us if you're interested in learning web development.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You'll Learn
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;Redux&lt;/li&gt;
&lt;li&gt;Styled Components&lt;/li&gt;
&lt;li&gt;CSS Grid&lt;/li&gt;
&lt;li&gt;CSS Flex&lt;/li&gt;
&lt;li&gt;CSS Animations&lt;/li&gt;
&lt;li&gt;Using an API&lt;/li&gt;
&lt;li&gt;Axios for network requests&lt;/li&gt;
&lt;li&gt;Redux middleware&lt;/li&gt;
&lt;li&gt;Create React App to bootstrap a project&lt;/li&gt;
&lt;li&gt;localStorage for persisting state&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;First initialize the project. Our solution uses &lt;a href="https://github.com/facebook/create-react-app" rel="noopener noreferrer"&gt;Create React App&lt;/a&gt;, but feel free to use whatever you want, even static HTML.&lt;/p&gt;

&lt;p&gt;Review the &lt;a href="https://github.com/HackerNews/API" rel="noopener noreferrer"&gt;Hacker New API&lt;/a&gt; documentation. You will need the /topstories endpoint to get the list of the story IDs and the /item endpoint to get the data for each story individually.&lt;/p&gt;

&lt;p&gt;Finally, get your project into production. We chose to use a Chrome Extension, but you can host it in any manner than you wish. GitHub pages is a great option. The final solution should show a list of the top stories on Hacker News.&lt;/p&gt;

&lt;p&gt;Join the &lt;a href="https://community.gitconnected.com" rel="noopener noreferrer"&gt;Slack channel&lt;/a&gt; to collaborate and get help. This project can be difficult, so make sure you work on it with some friends!&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/3HwA2U7rZgn0pRnV9f/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/3HwA2U7rZgn0pRnV9f/giphy.gif" title="Hacktoberfest Demo" alt="Hacktoberfest Demo" width="480" height="186"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fgitconnected%2Fhacker-news-reader%2Fraw%2Fmaster%2Fpublic%2Fhacktoberfest-screenshot.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fgithub.com%2Fgitconnected%2Fhacker-news-reader%2Fraw%2Fmaster%2Fpublic%2Fhacktoberfest-screenshot.png" title="Hacktoberfest Screenshot" alt="Hacktoberfest Screenshot" width="800" height="262"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hacktoberfest</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
