Adding a GraphQL API to a React Native App with AWS AppSync & AWS Amplify
lessonDuration 7m 48sFree
In this video we'll show how to create a new AWS AppSync API & connect it to a React Native application.
Browse
Find courses, lessons, articles, talks, and podcasts.
7,176 resources
Showing 5,017–5,040 · Page 210 of 299
lessonDuration 7m 48sFree
In this video we'll show how to create a new AWS AppSync API & connect it to a React Native application.
lessonDuration 5m 46sFree
In this lesson we learn how to add a real authentication service to a React Native application using AWS Amplify
lessonDuration 2m 58s
Without any input from the outside world to drive it, a state machine can be a very boring affair. It becomes even more boring, if we were to create a game that took no input from the outside. By using actions, Redux provides a means to allow the outside world influence and drive the application state based on some payload. In order to demonstrate how we can provide input to our transitions, we will create another transaction that takes an `id` and transitions the state based on that input.
lessonDuration 2m 33s
When developing a Finite State Machine, it is often necessary to apply multiple transitions in tandem. To accomplish this in most Redux work flows requires at best, implementing multiple action handlers in separate reducers; or at worse, the need to duplicate logic for similar action handlers, sometime across multiple files. However when using a State ADT, we can easily combine these independent transitions by simply `chain`-ing multiple discrete transitions into one transaction. We demonstrate this interface by transitioning two portions of related state with one transaction.
lessonDuration 3m 42s
We build our first state transactions as two discrete transactions, each working on a specific portion of the state. Each of these transitions are governed by an acceptable range and we want to be able to apply these limit within our model. With our discrete transactions we see that is easy to reason about and keeps our rules local to the data being worked on, without having to be considered in other transitions or, even worse, in the eventual view layer. Patterns like this make it easier to easily transport a given data model to any view layer.
lessonDuration 5m 10sFree
In this lesson we'll explore how to create `useEffect` call, and listen to the window for mouse movement. We'll learn about cleaning up our effects, and how to pass an empty array into the second argument of our effect to create a componentDidMount like effect. Finally we'll trigger a mount/unmount to show effects getting cleaned up correctly.
lessonDuration 4m 40sFree
Continuous deployment is the gold standard for any DevOps process. Frontend developers can take advantage of the reliability of version control in git, and extend that to the production deployment process. In this lesson we see how to set up and deploy a static site on Netlify, make and push a change to Github to trigger continuous deployment, and revert changes when necessary
lessonDuration 1m 54s
There are things that will happen in all of our test files that we can handle in a centralized fashion. In this lesson, we’ll create a jest configuration file and a test setup file to import utilities that we want to make available for all of our tests.
lessonDuration 6m 22s
Testing a React component takes a little more configuration than a test for standard JavaScript. In this lesson, we’ll install and configure react-testing-library and jest-dom matchers, create a test that renders our App component and configure it all to work properly with Babel 7 and dynamic import syntax.
lessonDuration 8m 13s
Having a boilerplate project on GitHub makes creating a new project as easy as cloning the project, making a few small adjustments and creating a new git repository for the clone. In this lesson, we’ll clean up the sample code we used to make sure everything was working along the way and then we’ll create a new project with all of the tooling and configuration in place by cloning the boilerplate.
lessonDuration 4m 13s
The jsx-a11y lint plugin is a great first line of defense to prevent accessibility issues, but no tool can cover everything. React-axe gives us a runtime check on our rendered DOM, and by adding it to our boilerplate, we’ll ensure that all our future projects have accessibility covered from multiple angles. In this lesson, we’ll install react-axe and add it to our entry point for development builds only.
lessonDuration 1m 20s
React components rely on props for any data that isn’t encapsulated into their internal state. We can help ensure that our components receive their required props and that the props passed in are of the correct types by defining prop types for our components. In this lesson, we’ll see how the React ESLint plugin enforces the use of prop types and how to define them in a component using the `prop-types` package.
lessonDuration 4m 9s
Uncaught errors in React used to leave your app in a corrupted state, since React 16.0, an uncaught exception in your render tree will cause your application to unmount. In this lesson, we’ll create a default error boundary to wrap our application as a starting point for new projects.
lessonDuration 3m 3s
React has deprecated some APIs in favor of new approaches that will better support the future, concurrent model for rendering. These deprecated APIs will eventually be removed, so it makes sense to avoid them in new code and move away from them in existing code. In this lesson, we’ll wrap our boilerplate application in the StrictMode component and see it in action.
lessonDuration 5m 41s
With the ability to run unit tests, automatic code formatting and linting, we should avoid ever committing code that does not adhere to our project standards or breaks our tests. In this lesson, we'll install and configure the Husky `npm` package and enforce these checks before a `git` commit is allowed.
lessonDuration 2m 41s
Because we'll be controlling our markup via JSX, we can use ESLint to check our markup for potential accessibility issues based on static analysis of the code. In this lesson, we'll install, configure and run the `jsx-a11y` ESLint plugin.
lessonDuration 8m 59s
JavaScript is great! JavaScript is also full of features and flexible options that can make it easy to introduce bugs. ESLint uses static analysis to check that your code adheres to a list of rules to help you avoid some specific runtime errors. ESLint is highly configurable, so in this lesson, we'll install ESLint and configure some baseline rules for our boilerplate.
lessonDuration 6m 40s
Consistent code format can make a project easier to maintain. What that format is can be largely subjective, but rather than spend a bunch of valuable time "bike shedding" over semi-colons or no semis and spaces vs tab, we should just let the tools handle this. In this lesson we'll configure Prettier to format our code for us.
lessonDuration 4m 4s
A common kind of “global” data is a toast or popup notification that appears in the corner of the app when some event happens. Allowing a deeply-nested component to surface a notification using props can be painful, but Context makes it much easier. In this lesson we’ll see how to dispatch a notification from a deeply-nested component and display it at the root level.
lessonDuration 2m 13s
Divide and conquer (or D&C) can take some time to comprehend. It is composed by using recursive functions to create a base case and to divide or decrease a problem until it becomes the base case. Let’s create a D&C function to accomplish a task with JavaScript
lessonDuration 4m 9s
Recursion is when a function calls itself. This self calling function handles at least two cases, the recursive case and the base case. People seem to either love it or hate it because it can be difficult to understand and implement correctly. Let’s walk through a recursive function and refactor a loop to instead perform the same result with a recursive function.
lessonDuration 1m 26sFree
When you want to do a partial commit with git, but you can't "split" a hunk to just the lines you want to commit, you can *manually* edit a hunk in order to commit just a few lines of a larger change. This lesson covers how to manually edit a hunk in git, and how to fix errors like "Your edited hunk does not apply", "patch failed", or "patch does not apply".
lessonDuration 2m 26s
Testing should be part of any substantial project, so we'll take the effort out of it by incorporating testing configuration into our boilerplate. In this lesson, we'll add Jest as a project dependency. We’ll add a test script to our package.json, create a sample test and verify that our test script works.
lessonDuration 1m 23s
You may come upon a case where you have a generic component that *can* consume a Context, but doesn’t require that Context in order to work. On the flip side, you may want to validate that a component is *always* used inside a required parent Context. In this lesson we’ll see how to set a default value on a Provider and access that default in the Consumer, as well as how to validate that a Consumer is used correctly, by checking the value it receives and throwing an error if it is missing.