2.12.19

Learning React ES6: Working With Arrays in JSX


By mjstokes86

Last lesson was dealing with arrays in React ES6. Arrays are supported in JSX. Arrays are created like usual [1,2,3], the array is captured but not rendered on the screen. In order for the array to render on the screen, it has to be wrapped in curly braces like other Javascript expressions {[1,2,3]}. The output […]

Read

2.07.19

Learning React ES6: Creating Forms and Submitting Data


By mjstokes86

Today’s lesson I’ve learned how to create a form in React ES6. I know how forms are created in HTML but doing in JSX is way different. I only created just a one button simple submit form. Here’s how it’s done in JSX: Create a template The form needs some kind of action to be […]

Read

2.05.19

Learning React ES6: Events, Attributes, and Data Mining


By mjstokes86

Today’s lesson was about creating listening events using special attributes and data mining for JSX. I have created buttons to click, for increment and decrement. It all started with creating arrow functions using const addOne= () => { count++;}, then creating html buttons <button>+1</button>. That’s not all! The buttons must have the onClick attribute and […]

Read