Deploy a static site using Netlify's Drop
lessonDuration 57s
We'll see how to quickly deploy (and redeploy) a static site using Netlify's Drop. This service allows a drag-and-drop approach to application deployment.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 913–936 · Page 39 of 299
lessonDuration 57s
We'll see how to quickly deploy (and redeploy) a static site using Netlify's Drop. This service allows a drag-and-drop approach to application deployment.
lessonDuration 1m 25s
We'll handle any fetching errors using the `.catch()` property of the `axios` promise. We'll also add some indication for our users to let them know that we had a problem. We'll do this by setting an error data property to true when we have an error and conditionally render an error message to the user.
lessonDuration 1m 18s
We'll see how we can use the `mounted` property of the configuration object to fetch data for our applications. We will set initial props and then have these updated with the returned data from our HTTP call.
lessonDuration 3m 26s
We'll see how we can define our own events that our components can emit to their parents. We'll also see how the parent can respond to these events using the `v-on` or `@` directive, just like any other event.
lessonDuration 2m 27s
We'll see how we can add methods and properties to components, allowing us to keep the logic that controls our components together with the templates. Our component receives tickets for the visitor to buy, we'll create a method in our component and bind it to a button that allows them to buy those tickets. In doing so, you'll notice that we can't change the value of the tickets that we received, it's immutable. To get around this we'll create a local variable in our component to update the display as tickets are purchased.
lessonDuration 3m 35s
We'll use the `app.component` function to make a component and add it to our template. We'll pass through `props` into the component and use these to initialize the state of our component. In this component, we'll accept data with the `props` key, display the data with the `template` key and bind data in our `data` key in our component config object. By doing so we'll be able to select the number of tickets that we would like to buy at each ticket type level.
lessonDuration 1m 33s
As our applications get more complex, it can be really valuable to organize our applications into components. We'll discuss some of the considerations that help us make these decisions. A big factor to consider when making these considerations is when you start seeing logic or styling that you could use elsewhere in the application.
lessonDuration 1m 51s
We'll see how we can define two-way binding using the `v-model` directive. This allows us to update data in our component and have it change the data stored in the application. This is particularly useful in forms within our application. We'll see a form in action by creating a `message` data prop and binding the input field to that data prop and watch the data get updated. If this prop is updated anywhere in the application it will affect the input that we defined.
lessonDuration 1m 49s
We'll see how we can add CSS classes conditionally to our HTML elements using the array syntax. We'll explore how different classes can be added atomically and that these can be build on top of a defined base class. You'll see that we can pass in terneries that will conditionally apply a class or use the object syntax to conditionally apply a class.
lessonDuration 2m
We'll see how we can add CSS classes conditionally to our HTML elements using the object syntax. We'll explore how different classes can be added atomically and that these can be built on top of a defined base class. In this case, we'll check if our `soldOut` computed property is returning true and if it is we'll gray out the event image.
lessonDuration 2m 14s
Computed properties cache the results of the defined calculations and return that result as a prop to be used in the application. We'll discuss how these computer properties are updated reactively when the underlying data changes. Computed properties come in handy when the operation that you perform is expensive, you'll only need to make the computation when data changes.
lessonDuration 2m 31s
We'll look at another HTML event and use the `v-on` directive to handle mouse over events. While doing so we'll see a few concepts that you've been introduced to so far in the course. We will be iterating over a list of data that has been added and then create a `updateImage` method that will replace the page image with the image of the ticket that we mouse over with the `@mouseover` event.
lessonDuration 2m 53s
We'll explore the `methods` key of the Vue configuration object and how we can reference these methods in our code. Using these we can encapsulate more complex logic and use these throughout our application. You will see how to pass values to these methods as well as see what happens when you don't pass arguments to a method that is expecting some.
lessonDuration 1m 30s
We'll see how we can respond to HTML events using the `v-on` directive. We'll discuss how `v-on` can be abbreviated to `@` in our HTML and look at some of the events that are available to us. In this lesson, we'll create a button that adds tickets to our cart.
lessonDuration 2m 6s
We'll see how we can use the `v-for` directive to iterate over an array or object. We can define a temporary variable to reference the currently targeted element and render content based on this.
lessonDuration 2m 8s
We'll see how we can use the `v-if` directive in Vue to render content based on a conditional statement. We'll also see the `v-else` and the `v-else-if` directives in action. The `v-else` and `v-else-if` blocks need to immediately follow the `v-if` block to function properly.
lessonDuration 2m 23s
We'll see how we can bind the value of attributes in our HTML to JavaScript statements using the `v-bind` directive. This allows us to use the data props and JavaScript evaluations to control the appearance and structure of our web applications. We'll also discuss that `v-bind:` can be abbreviated to `:`.
lessonDuration 1m 10s
We'll add the Vue Devtools to our browser to help us keep track of changes. At the time of recording, we need to install the beta version of the devtools to be compatible with Vue 3. There are lots of ways data might get updated in an application as you continue development. The Vue Devtools will make it easier to track those changes as you build new functionality
lessonDuration 2m 21s
Because we've imported Vue with a UNPKG CDN, we can instantiate Vue and ensure that we have access to the Vue application within our HTML. After doing this we will mount the application to a DOM element and render some data on to the screen
lessonDuration 2m 45sFree
We'll discuss the minimum set of files that are required to get up and running with Vue. We'll add an `index.html` file as our entry point, a `main.js` file that will contain our JavaScript code and a `styles.css` that will contain all of our CSS. We also load Vue into our project with UNPKG which exposes the Vue object to us.
lessonDuration 2m 41s
Now that we've chosen Inquirer as the library to use in our project, we need to use it! To do so the current questions in the CLI will be swapped out with inquirer `prompt` API. You'll see some immediate benefits in styling and functionality that we get for free now that inquirer is being used.
course
Managing state in a UI is challenging. It's genuinely difficult and the solutions require a depth of knowledge and experience to understand. Everything is a balance of tradeoffs in complexity, performance, and user experience. This is a series of interviews with experts, open-source maintainers, and UI developers that have combined decades of experience building stateful UI applications for millions of users. Part interview, part screen share, these videos should benefit you if you're building web applications. They focus on React, but the underlying principles are valid for UI work in general (and beyond).
course
Almost every React application needs to fetch data from a server and cache the result between renders. Traditionally, in-memory API Caching is something that has been done in React applications either on a per-component-level, which lead to application state running out of sync, or using a global state like Redux, which required a lot of hand-written code. RTK Query is part of the official Redux Toolkit and provides an application-global API cache that abstracts most of that hand-written code away, leading to a lot more readable code bases. It also offers a lot of advanced features like auto-generated hooks In this course, you will learn about - Using `createApi` to define multiple endpoints to interact with your API - The auto generated `useQuery` hooks and how to use them in your application - The RTK Query Dataflow and the role of the `baseQuery` function - The Redux Devtools “RTK Query” Monitor and which actions are flowing though your app - How to use RTK Query either with an `ApiProvider` or a pre-existing Redux store - Using RTK Query with TypeScript
lessonDuration 2m 43s
One issue with our script is that the answer that is checked needs to be exactly the same string as the answer in the file system. This can be brittle because your user might not capitalize or forget a space. There are ways we could sanitize user data but this can introduce quite a lot of complex logic into our script. A great work around is to use Inquirer to check with the user if they got the answer right or wrong, this way you know you are logging correct values and you don't need to worry about sanitizing data as the user is determining for themself if they were right.