Course programme
Write Code for the Browser
6 lectures 33:39
The Course Overview
This video gives overview of the entire course.
Forms
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
Events
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Refs
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
Animations
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Scalable Vector Graphics
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
Write Code for the Browser
6 lectures 33:39
The Course Overview
This video gives overview of the entire course.
Forms
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
Events
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Refs
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
Animations
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Scalable Vector Graphics
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
The Course Overview
This video gives overview of the entire course.
The Course Overview
This video gives overview of the entire course.
The Course Overview
This video gives overview of the entire course.
The Course Overview
This video gives overview of the entire course.
This video gives overview of the entire course.
This video gives overview of the entire course.
Forms
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
Forms
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
Forms
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
Forms
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
If we want to ask for information from our users within the browser, forms are the most common solution. Due to the way the library works and its declarative nature, dealing with input fields and other form elements is non-trivial with React, but as soon as we understand its logic, it becomes clear.
• Display form with an input field and a submit button
• Install react-jsonschema-form
• Define the schema
Events
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Events
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Events
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Events
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Events work in a slightly different way across the various browsers. React tries to abstract the way events work.
• Implement a simple button
• Add a constructor and bind the event listener
• Define the event handler
Refs
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
Refs
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
Refs
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
Refs
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
React takes care of the communications with the browser. Suppose we want to create a simple form with an input element and a button, and we want it to behave in such a way that when the button is clicked,the input field gets focused.
• Create a class called Focus with a constructor
• Listen to the click events on the button
• Implement the actual handleClick method
Animations
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Animations
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Animations
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Animations
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Animated UIs are a very important tool to show users that something has happened or is about to occur. React comes with an add-on, called react-addons-csstransition-Group. The most popular library to create animations is react-motion, maintained by Cheng Lou.
• Install the add-on and import the component
• Wrap the component to which we want to apply the animation
Scalable Vector Graphics
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
Scalable Vector Graphics
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
Scalable Vector Graphics
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
Scalable Vector Graphics
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
SVG is great, because it is a declarative way of describing vectors and it fits perfectly with the purposes of React.
• Wrap the base circle component into a RedCircle
• Pass other props to original circle
Make Your Components Look Beautiful.
4 lectures 33:21
Inline Styles
The official React documentation suggests developers use inline styles to style their React components. This seems odd, because we all learned in past years that separating the concerns is important and we should not mix markup and CSS.
• Create a button with the text Click me!
• Bind the handleChange handler
• Implement a simple change handler
Radium
One of the first libraries created to solve the problems of inline styles we have encountered in the previous section is Radium. It is maintained by the great developers at Formidable Labs, and it is still one of the most popular solutions he logic needed to make the page interactive on the browser.
• Server returns an empty HTML page
• Manipulates the DOM inside the browser
Universal Applications...