<?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 Claudia Contreras on Medium]]></title>
        <description><![CDATA[Stories by Claudia Contreras on Medium]]></description>
        <link>https://medium.com/@claudiacontreras_44016?source=rss-c0031623409c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*p3w0Uwfrk_8IiHha.</url>
            <title>Stories by Claudia Contreras on Medium</title>
            <link>https://medium.com/@claudiacontreras_44016?source=rss-c0031623409c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 11:51:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@claudiacontreras_44016/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[Creating a form with React]]></title>
            <link>https://medium.com/@claudiacontreras_44016/creating-a-form-with-react-40031ba003e2?source=rss-c0031623409c------2</link>
            <guid isPermaLink="false">https://medium.com/p/40031ba003e2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[learningreact]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Claudia Contreras]]></dc:creator>
            <pubDate>Tue, 05 Jun 2018 00:09:03 GMT</pubDate>
            <atom:updated>2018-06-05T00:12:26.873Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s create a simple form where all it does is take the submission and displays it.</p><p>Yes it sounds simple but there is a lot going on where it can get confusing. But once you get the basics down then everything else that has to do with a form is just an extension of this.</p><p>Let’s get started by creating a new react app, cleaning out the template code so we are left with just a blank page.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/258d3019950bb2d918ceaeacceac0c0d/href">https://medium.com/media/258d3019950bb2d918ceaeacceac0c0d/href</a></iframe><p>Next let’s create the form component</p><p>Things to remember when creating a component</p><ul><li>Always import react</li><li>Your class should have a render function and a return function.</li><li>Everything inside the return function should be inside a div or section or something or it will cause an error.</li><li>Don’t forget to export the class.</li></ul><p>With just a simple h1 our form component looks like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4fa07a68763ba4d978c8b8fb63b4bd1/href">https://medium.com/media/b4fa07a68763ba4d978c8b8fb63b4bd1/href</a></iframe><p>We have our simple shell. Before we do any more coding let’s think this out and make steps to follow.</p><ol><li>The user will fill in the text field.</li><li>The user will hit submit and the text will be displayed on the page</li><li>The text field will clear itself out and the user can do this again.</li></ol><p>This part was simple enough as this is what the user sees but there is more happening on the back end and this is what we have to code in.</p><ol><li>We need an array that will hold our data : <strong>STATE to create</strong></li><li>The data in the array needs to be displayed on a separate line : <strong>PROPS to pass down</strong></li><li>Add the form with 1 input field and 1 button</li><li>Capture the text input value: STATE</li><li>Change the value of state with an event listener.</li><li>Add the new item to the array</li><li>Clear the input field</li><li>Bonus: Don’t allow an empty field to be passed in.</li></ol><p>This might seem like a lot but in reality it’s not because we broke down our problem into such small steps that we can get each one done in a few minutes.</p><p>The thing about coding is that the biggest challenge isn’t the coding it is knowing what to code and if you spend the time before hand to break down the problem, now we just have to worry about the syntax of the language.</p><h3>Create an array</h3><p><em>I am using an array in this example but in the real world outside of learning we would be using a database.</em></p><p>This array is to be modified therefor it should be inside of the state, let’s create the state with our array inside. Remember that our state has to be inside a constructor that uses props. The other thing is that state expects an object so our array has to be inside of an object. It will look like this. <em>Notice how I used some dummy text and that is just to make sure that we have some data to work with on the next step.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c178829c09672db623c2559f7fc926f/href">https://medium.com/media/5c178829c09672db623c2559f7fc926f/href</a></iframe><h3>Display data in array</h3><p>In React, it’s very common to see items iterated through an array with the .map() method, so we will use that here to display each item from our array. Our method is going to look like this:</p><p><em>{ this.state.formItems.map( (element, index) =&gt;</em><br> <em>&lt;Form key={ index } /&gt;</em><br> <em>)}</em></p><p>In React each list item needs to have an individual key attribute so we use the index of the array. This way we know that each item has an individual key value.</p><p>Somehow we need to get the array information from the app file to our form element and we use props for this. Just as a reminder props are made to be passed down from a parent element (app in this case) to it’s child components (form). We are passing down the items in the array. We are just going to add this to the information in our</p><p><em>&lt;Form key={index} formElement={element} /&gt;</em></p><p>Now in our form element we can access those props with the this.props object and we can render each item in our Form component</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9b70f9554bc12b0502b0fcfa966d46b4/href">https://medium.com/media/9b70f9554bc12b0502b0fcfa966d46b4/href</a></iframe><h3>Add the form</h3><p>The form itself is no different than any other form you have ever created.</p><p><em>&lt;form&gt;</em></p><p><em>&lt;input type=”text” /&gt;</em></p><p><em>&lt;input type=”submit” /&gt;</em></p><p><em>&lt;/form&gt;</em></p><p>The app can go below the text we are displaying so that the user can read through the list before submitting a new item.</p><h3>Capture the text input value</h3><p>This is where al the complications happen!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*f9j0YdKHt3BoqQFT" /></figure><p>We have to put what the user has typed into a variable so that in the next step we can push it into the array.</p><p>We don’t want anything to happen until the user hits the submit button. Lucky for us there is onSubmit attribute that we can add to the form tag. the value will be an arrow function.</p><p><em>&lt;form onSubmit={ (e) =&gt; this.handleSubmit(e) }&gt;</em></p><p>In this example e is short for event, but it could be anything you want to name it, it is just common practice to use the letter e.</p><p>We are calling the handleSubmit(e) function but it doesn’t exist yet so on top of the file below the component(props) we can create our function.</p><p>We are going to call preventDefault to prevent the page from reloading when the submit button is pressed.</p><p><em>handleSubmit(e) {</em><br> <em>e.preventDefault();</em><br> <em>}</em></p><p>If you wanted to test it to see if it’s actually working we could add a console.log() and check the console.</p><p>We don’t need our dummy text in our array so we can delete it leave it blank. After our array we can create a variable to hold the user’s input.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1535682febdd99c21fee5bf1c7c03756/href">https://medium.com/media/1535682febdd99c21fee5bf1c7c03756/href</a></iframe><p>The last change you will see is that we set the value of the text element into our variable.</p><h3>Add an event listener</h3><p>If you run the app now and enter a word nothing is going to happen. All that work for nothing, well we are putting the information in our variable but we need to change the value in state so that it renders on the screen.</p><p>There is an event listener that listens for changes called onChange we will then use it to call a new function titles handleChange.</p><p>Just like before the handleChange function doesn’t exist so we will create it. This new function will set the state of newFormElement to whatever was stored in the value field.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c409c61e4a4e79e43c46175f96912d26/href">https://medium.com/media/c409c61e4a4e79e43c46175f96912d26/href</a></iframe><h3>Add the new item to the array</h3><p>Now we just have to add the new item to the array. You would think that it would be as easy as to use the push method. But react doesn’t want us to change state directly as errors can happen.</p><p>We will use our handleSubmit function to add the new item.</p><p><em>handleSubmit(e) {</em><br> <em>e.preventDefault();</em><br> <em>this.setState({formItems: […this.state.formItems, this.state.newFormElement] });</em><br> <em>}</em></p><p>It’s almost like if we created a new array that contains the previous elements plus the new one.</p><h3>Clear the input field</h3><p>It is not clearing the input field after the item is passed to the array. This is a quick fis that can be accomplished by changing the state of the newFormElement varible by assigning it to ‘ ‘.</p><p><em>handleSubmit(e) {</em><br> <em>e.preventDefault();</em><br> <em>this.setState({formItems: […this.state.formItems, this.state.newFormElement], newFormElement: ‘’ });</em><br> <em>}</em></p><h3>Bonus: Don’t allow an empty field to be passed in.</h3><p>Before we add the item to the array we can check to see if it’s empty and if it is then we exit the function by using the keyword return.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ec541a1e8fb3cd95da9ef834a14b63c/href">https://medium.com/media/8ec541a1e8fb3cd95da9ef834a14b63c/href</a></iframe><p>And that is all that there is to it. With just these steps it is possible to add new items to the form and output them to the page.</p><p>If you found this post useful, checkout my blog at <a href="https://thecoderpilot.blog/">https://thecoderpilot.blog/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40031ba003e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Month Journey to Full Stack Dev 1st Month]]></title>
            <link>https://medium.com/@claudiacontreras_44016/6-month-journey-to-full-stack-dev-1st-month-9390931638c?source=rss-c0031623409c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9390931638c</guid>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[girls-in-tech]]></category>
            <dc:creator><![CDATA[Claudia Contreras]]></dc:creator>
            <pubDate>Wed, 02 May 2018 17:43:30 GMT</pubDate>
            <atom:updated>2018-05-02T17:43:30.379Z</atom:updated>
            <content:encoded><![CDATA[<p>I read an article on Medium <a href="https://codeburst.io/the-ultimate-guide-to-learning-full-stack-web-development-in-6-months-for-30-72b3854a7458">The Ultimate Guide to Learning Full Stack Web Development in 6 months, for $30</a>. I thought to myself, this seems like a good plan, I should try it. So I am.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/0*rPzn5f87z86s4QGI." /></figure><p><strong>3/4/2018 Day 1:</strong> I had purchased <a href="https://www.udemy.com/the-web-developer-bootcamp/learn/v4/overview">The Web Developer Bootcamp course</a> on Udemy but never actually done it. So this was the perfect time to get some use out of my $10. I have done pretty good with HTML in the past so I watched the videos at 1.5 speed. I did the challenges on the video. So far so good, but this part is just review so I accomplished a lot in just a few hours of the day.</p><p><strong>3/9/2018 End of Week 1: </strong>I managed to get through all the HTML and CSS sections of the course.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*xj9pA-rPHJyUDKz8." /></figure><p>No where near being an expert but I feel super confident in what I can do with HTML and CSS. The only thing that I need to work on a bit more is using Bootstrap. This will be an area that I need to concentrate more on.</p><p><strong>3/10/18 Day 7 : </strong>Just as I got done saying that I feel super confident I go and make a super silly mistake. I was trying to do the linking between my HTML, CSS, and JS files without looking it up and I used href instead of src for my js file and then I wondered why it wasn’t working. I thought it was my code but no that was surprisingly well written. When I realized what I had done, well…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/0*eQZy91ccnSfL1tY0.gif" /></figure><p><strong>3/14/18 Day 12:</strong> I learned something that will make life easier with loops today. I learned to use the forEach function. Instead if doing a for loop and doing the whole set up</p><p>for(var i = 0; i &lt; arr.length; i++) {…}</p><p>I can do a for each</p><p>arr.forEach(function(element) {…});</p><p>It makes for easier code.</p><p><strong>3/15/18 Day 13:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*R1Ahbk4RJQmZie6r.gif" /></figure><p>Just when I think I am making great progress. Up comes something that makes me say “Whaaaaat???” And that would be nested objects. I don’t know what exactly tripped me up but something did. I gave up for the day because well I can only try so much in one day.</p><p><strong>3/16/18 Day 14:</strong> I am away for a conference and I just couldn’t get the idea of how or why I would ever need to nest and object inside of an array but after a shower and a hot cup of coffee everything is possible even understanding objects and being able to nest them inside Arrays. The best thing was being able to write a simple movie database.</p><p>I am starting to think that Coffee is a miracle brain booster.</p><p><strong>3/17/18–3/18/18 Day 15–16:</strong> I still did some coding but I attended the Women in Tech conference in San Francisco. This couldn’t have come at a better time as this was the perfect motivation to keep learning everyday and be able to join these women at a future conference as a woman in tech myself.</p><p><strong>3/20/18 Day 20:</strong> I did it!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*P_zcg9TTHeJfwNA0.gif" /></figure><p>I would say about 90% was just me and I had to watch 10% for help. I think that’s pretty good. I want to use it as a portfolio piece so I need ideas on how to expand on it.<a href="https://thecoderpilot.com/ColorGame/index.html"> https://thecoderpilot.com/ColorGame/index.html … </a>feel free to leave ideas or email me at <a href="/service/mailto:clc_80@yahoo.com">claudia@thecoderpilot.com</a></p><p><strong>3/29/18 Day 24:</strong> I finished the javascript and jQuery section of the course and I decided to apply what I learned to my personal project which can be found at <a href="https://thecoderpilot.com/STEM_Women/index.html">https://thecoderpilot.com/STEM_Women/index.html</a> This is a constant work in progress that I will continue to work on and change as I learn more.</p><p><strong>4/3/18 Day 29:</strong> In just under one month I finished the front end section of the course. I couldn’t be happier with my progress and how much I was able to do. Next month will be all new as I start learning the back end of websites.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9390931638c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I am officially a Bootcamp Student]]></title>
            <link>https://medium.com/@claudiacontreras_44016/i-am-officially-a-bootcamp-student-483fd93d0a23?source=rss-c0031623409c------2</link>
            <guid isPermaLink="false">https://medium.com/p/483fd93d0a23</guid>
            <category><![CDATA[girls-in-tech]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[bootcamp]]></category>
            <dc:creator><![CDATA[Claudia Contreras]]></dc:creator>
            <pubDate>Wed, 02 May 2018 17:04:55 GMT</pubDate>
            <atom:updated>2018-05-02T17:04:55.746Z</atom:updated>
            <content:encoded><![CDATA[<p>So I finally did it. I applied to Bloc and I am an official student enrolled in a bootcamp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/0*6XlJjhHCj42RdSUx." /></figure><p>My first day was April 7th. I knew that the first few days would be mainly review as I have been learning on my own for the past few months. So I figured that if I just push through the review areas now I can spend more time in the areas that were not familiar to me.</p><p>I was able to finish the first module out of 4 in one month. This was mostly in part to all the work I have done in the past. Code School, Free Code Camp, Skillcrush, Random books and Medium articles. Completing this gave me much needed confidence to continue learning.</p><p>The first Module was Fundamentals of HTML, CSS, Javascript. Learning about Version control with Git and GitHub. Plus a high level knowledge of API’s, Problem Solving and Algorithms. It was a lot to go over, and the only areas where I needed to slow down were Javascript Closures and Inheritance. I had read about them a bit before but never really understood them enough.</p><p>I will be writing about closures and inheritance in a future article to try and understand it better. With my previous experience as an educator I have learned that the best way to truly understand something is to try and teach it to someone else. I plan to continue writing about my experiences at Bloc and about what I am learning in my journey to becoming a Web Developer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=483fd93d0a23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I finally took the plunge and applied to FullStack Academy]]></title>
            <link>https://medium.com/@claudiacontreras_44016/i-finally-took-the-plunge-and-applied-to-fullstack-academy-38caf2e7dfd1?source=rss-c0031623409c------2</link>
            <guid isPermaLink="false">https://medium.com/p/38caf2e7dfd1</guid>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[women-who-code]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Claudia Contreras]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 00:57:02 GMT</pubDate>
            <atom:updated>2018-01-05T00:57:02.518Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*dFSokwdonbw0OZ0hf2LHTA.jpeg" /></figure><p>November 27, 2017 I opened up the email newsletter from <a href="https://www.womenwhocode.com/">Women Who Code</a>. I love this newsletter the information and resources that I have gotten from it are invaluable to me. This newsletter had a coupon code for $600 off FullStack’s Bootcamp Prep in a Week Workshop. I didn’t think about it, I didn’t discuss it with my husband I signed up. (Best decision ever). Before getting accepted into the workshop we had to pass a quiz. We were given access to a course called Javascript Jumpstart to help with the quiz. I took the course and sweated through the quiz. I passed the quiz which was 3 javascript challenges. And then I got an email saying that I was accepted into the bootcamp prep class. PHEW!!!!</p><p>A few days later I was reading an email from Laurence Bradford who runs <a href="https://learntocodewith.me/">learntocodewith.me</a> who has an awesome podcast called Learn To Code With Me. This email had information about the Winter is Coding Scholarship process that FullStack was running where you get entries for completing different tasks. (Isn’t that convenient). I started going through the tasks. I watched the video, I twitted about it, I posted it on Facebook everything except for the last task which was to apply to FullStack. I had wanted to apply to their bootcamp for over a year now but I was intimidated by the application process. I had read other people’s post about the coding challenge and the skype interview. I was honestly scared to apply.</p><p>I kept doing what I had been doing for months with my self guided process. I did FreeCodeCamp, CodeSchool, Udemy, Udacity and many others. There is also an online version of a bootcamp prep course online that is self paced I was working on this a week before the start of the actual workshop. I still didn’t feel ready. So the day of the Bootcamp Prep Workshop came. This was going to be a week long workshop to help get ready for the interview. Saturday morning 7:00 am California time I log on and I meet my classmates and my instructor and we got right to work.</p><p>The way it worked was that the instructor taught us about a certain topic and then he split us off into groups and we did pair programming. It was a lot of fun but what I realized after a few hours that I had a really good grasp of the work and I could get through most of the challenges rather quickly and I was able to talk my classmates on how to get all the tests to run on the challenges. I felt great, I felt empowered. I actually felt ready to apply to FullStack, so I did.</p><p>I will write about that process next…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38caf2e7dfd1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>