Skip to content

Instantly share code, notes, and snippets.

View Prollock's full-sized avatar

Prollock

  • New Jersey
View GitHub Profile
@Prollock
Prollock / es5-challenge-regular-expressions.markdown
Created December 2, 2020 07:14
ES5 Challenge: Regular Expressions
@Prollock
Prollock / index.html
Created December 10, 2020 06:45
React Challenge: Redux
<h1>Instructions</h2>
<p>Below is a pared-down demonstration of React and Redux working together. It has the essential elements you need to connect/subscribe a React component to the Redux store for data, to dispatch actions, and to update the store's state using a reducer.</p>
<p><strong>Challenge 1: Fix the existing code</strong></p>
<p>When you enter a name and a course and hit the "Add Instructor" button, it should update the instructors list in the view. However, it isn't working right now, and lucky you, you get to debug it. Note: This is more of a React review challenge than a Redux one. </p>
<ol>
<li>Why is the <strong>instructorsList</strong> component not rendering? Fix this first so that you can see the list. Hint: It's a small but important typographical error.</li>
<li>In the AddInstructor component, the event handler has not been bound correctly. Can you fix it? There are two different and acceptable ways to do this. Refer to <a href="https://codepen.io/minae/pen/KJMYEO" target="_blank">this