<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andrés Cruz on Medium]]></title>
        <description><![CDATA[Stories by Andrés Cruz on Medium]]></description>
        <link>https://medium.com/@andres.cruz?source=rss-b5855a2de22e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*i0s8W4RZwADo0hCiZKFTZQ.png</url>
            <title>Stories by Andrés Cruz on Medium</title>
            <link>https://medium.com/@andres.cruz?source=rss-b5855a2de22e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 03:27:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andres.cruz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[4 reasons you still struggle learning React]]></title>
            <link>https://medium.com/swlh/4-reasons-you-still-struggle-learning-react-1a4004343815?source=rss-b5855a2de22e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a4004343815</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Andrés Cruz]]></dc:creator>
            <pubDate>Mon, 03 Jun 2019 18:00:14 GMT</pubDate>
            <atom:updated>2019-07-03T23:50:38.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ce0eU1nmnL2QxIHa" /><figcaption>Photo by <a href="https://unsplash.com/@yucelmoran?utm_source=medium&amp;utm_medium=referral">Yucel Moran</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Disclaimer:</strong> This article doesn’t pretend to be an extensive list of concepts to study to learn React instead it aims to point and (hopefully) help you to remove the obstacles so you can learn quickly and smoothly.</p><p>You took an online tutorial and made an app, maybe watched several videos on Youtube or even tried to read the React documentation, and been trying to learn for weeks, yet somehow you still can’t design and build a fully working app on your own. Why?</p><p>There are several factors to this, such as your educational background (e.g., if you have a computer science or related degree or not), how long have you been coding before start to learning React, etc.</p><p>Although the above is relevant, I think there are four major reasons (or obstacles) in your way to learning React. Let’s review them one by one and then discuss what you can do to overcome those.</p><p><strong>1.- You don’t know JavaScript well enough</strong></p><p>JavaScript is a tough language, and sometimes it’s easy to get things done without really understanding how it works under the hood. If it’s your case, then when problems arise while working with React, you won’t know how to debug and solve them. It can become painful because even the silliest mistakes can be really time-consuming tasks.</p><p><strong>2.- You don’t know JS ES6 syntax</strong></p><p>React does make heavy use of the latest JavaScript features. If you aren’t familiarized with features like map, filter, reduce, rest, spread, arrow functions, etc. then learning React may seem like a daunting task. Most of the students fit into this group. If that is your case, you may think that React syntax is complicated when in fact it’s just JavaScript syntax.</p><p>The same is still valid when you start using other libraries in the React ecosystem, -Yes, I’m looking at you Redux-.</p><p><strong>3.- You don’t know the key concepts behind React</strong></p><p>Building apps with React is all about composing different components together to create user interfaces. It is all based on 3 principles: declarative views, component architecture, and unidirectional data flow. If you haven’t grasped quite well the concepts behind those principles, you will struggle with React. Also, High-Order Components (HOC) can trip you up if you have a fragile knowledge of how everything works in the React world.</p><p><strong>4.- You’re trying to learn React and Redux at the same time</strong></p><p>This is a classic mistake. Internet is flooded with tutorials teaching React and Redux together like it is an inseparable combination, in the sense that you can’t use React without Redux. If you are a newbie you might think that’s the way it is.</p><p>The thing here is that if you don’t have a strong foundation in React, you won’t be able to leverage much of Redux, and it will become a handicap for your learning since Redux introduces new concepts like actions, dispatch, reducers and store, that will confuse you. Even worse if you don’t know React before jumping into Redux you won’t know where React ends and Redux begins.</p><h3><strong>Overcome the obstacles</strong></h3><p><strong>Solidify your knowledge of JavaScript</strong></p><p>For points 1 &amp; 2 do the following: Forget about React for a while. React is a JavaScript library. It’s an obvious but often overlooked fact. If you want to be good at React you must be good at Javascript first. There are no shortcuts to this.</p><p>When I was learning React, I stopped studying React altogether and instead studied Javascript in depth. To know JavaScript well the study list is long, but below I share some key concepts to know.</p><p>This list contains some JS concepts and features that you will use almost all the time working with React:</p><ul><li>JS execution context</li><li>Objects</li><li>Classes</li><li>Constructors</li><li>ES6 modules</li><li>Map</li><li>Filter</li><li>Reduce</li><li>Arrow functions</li><li>Rest and spread</li><li>Destructuring</li><li>Async / Await (to work with APIs)</li></ul><p>It took me a couple of weeks but when I came back to React all seemed much simpler. In large part, this was because I no longer had to struggle with the intricate parts of JavaScript and was able to focus on learning React itself.</p><blockquote>React is a JavaScript library. It’s an obvious but often overlooked fact. If you want to be good at React you must be good at Javascript first.</blockquote><p><strong>Understand the concepts behind React</strong></p><p>React is designed around the concept of reusable components. This idea of small components that you put together to form bigger components is known as component architecture.</p><p>Another important concept in React is that it allows us to declare the state of our data for each component, and based on that state React updates and renders the right components when the data changes. This declarative paradigm means we don’t have to directly say “do this” and if this happens “do that” to update the UI.</p><p>Also, React has this concept of one-way data flow. The state exists inside its own component. It is not accessible to any component other than the one that owns and sets it. This concept makes really easy to debug, and test our code.</p><p><em>Thinking in React:</em><br>To understand these ideas I suggest you read <a href="https://reactjs.org/docs/thinking-in-react.html">this article</a> from the official React documentation and implement the concepts by building the example app.</p><p><strong>Master React before moving into Redux</strong></p><p>For point 4, the advice is similar: Forget about Redux for the moment. Focus on React first. At this point, your goal should be getting comfortable with React. Creating components, understanding state, lifecycle methods, and making API requests should be second nature to you.</p><p>Build as many apps as you can using just React, then when you are more comfortable with it and you want to build more complex apps, you will see the advantage of using a tool like Redux to manage the state. By then learning Redux won’t be a problem.</p><p><strong>Forget about webpack for the moment</strong></p><p>Again, your focus should be on React, not in configuring webpack. Leave it for when you’re good at React. As Steve Jobs explained at WWDC ’97: “Focusing is about saying no.” No to the things that distract you. Create React App is your best friend in this instance.</p><p><strong>Apply it to a project that you care</strong></p><p>You need to apply the knowledge you have gained to a project, ideally a project you really care. Why? First, because this is going to ensure that you give your best. Second, because if you don’t use your skills, they get rusty and eventually you may lose them.</p><p>For me, it was designing and building a big application that I had already built previously with other technology. The process of completely designing the app architecture solidified my knowledge of React and building it made me put into practice all that knowledge. For you, it could be making that app that you’re always putting off for lack of time or some other excuse.</p><h3>Summary</h3><ul><li>Solidify your knowledge of JavaScript</li><li>Understand the principles behind React</li><li>Focus on React, forget Redux and webpack until you are good at React.</li><li>Apply your new skills to a project you care.</li></ul><p>If you’re going to take anything from this post, I hope it’s those four things. Because that’s what’s going to give you 80% of the results. The remaining 20% will come alone, with practice.</p><p>I hope you enjoyed this post and find it useful. In the next posts, I will write about the best materials to learn React in 2019.</p><p>Remember that you can clap up to 50 times 👏👏👏👏👏<br>If you liked the story help others to find it out by giving a round of applause for visibility ;)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a4004343815" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/4-reasons-you-still-struggle-learning-react-1a4004343815">4 reasons you still struggle learning React</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>