Set an Error Component in React Universal when a Component Fails to Load
lessonDuration 2m 12s
You can set the error component that will show when a component has an error during async loading. You can force the error to show manually as well.
Browse
Find courses, lessons, articles, talks, and podcasts.
1,542 results for "react"
Showing 1,033–1,056 · Page 44 of 65
lessonDuration 2m 12s
You can set the error component that will show when a component has an error during async loading. You can force the error to show manually as well.
lessonDuration 3m 45s
If you’d like to perform an animation while a component is loading you can achieve this by setting a minimum delay and forcing it to always happen. You can then use the onBefore and onAfter hooks on the component to set some local state within your parent component. This local state can be used to trigger the animation.
lessonDuration 2m 37s
We’ll go through the options related to loading. You have the ability to specify a custom loading component instead of the default `Loading…` component that react-universal-component will show for you. You can also set a minimum delay if you’d like the loading component to always show for some time—sometimes a quickly blinking loading component can appear unpolished.
lessonDuration 2m 19s
We’ll use a function as our first param in the `universal` HOC. This function takes in the props and you can return a dynamic import using the props that were received. This allows us to make a very generic and reusable Universal component!
lessonDuration 7m 29s
We will expand our UI, and give the user the possibility to edit his wishlist. We will use the earlier defined actions. We also will use model clones only to modify data temporarily, and after approving the changes, apply them back to the original model. In this lesson you will learn: * How to call model actions from a component * Using `clone` to create a full, deep clone of any model instance * Using `applySnapshot` to update the state of a model instance given a snapshot.
lessonDuration 4m 25s
Functions created with `mapPropsStream` canned be composed together to build up powerful streams. Bring in the `compose` helper from Recompose then simply list your functions in the order you want the props to push through.
lessonDuration 1m 11s
Rather than using Components to push streams into other Components, `mapPropsStream` allows you to create functions that can wrap components to create shareable behaviors across components.
lessonDuration 1m 40s
Combining input streams then using `scan` to track the results is a common scenario when coding with streams. This lesson walks you through setting up two buttons and merging their input events together to build a streaming Counter component.
lessonDuration 2m 25s
Events are the beginning of most every stream. Recompose provides a `createEventHandler` function to help your create handler and stream pairs. Once the handler/stream pairs are created, it’s simply a matter of passing the handlers down the stream as props and combining the streams any way you want.
lessonDuration 4m 26sFree
In this lesson, we will learn how to create our own buttons using the 3 Touchable components that are available on the iOS and Android platforms. We will build a button with each component and learn which component is best based on the feedback that we need to provide to the user.
lessonDuration 2m 37sFree
Starting from v15.5 if we wanted to use React's PropTypes we had to change our code to use a separate node module, now we can go one step further and get rid of that extra dependency just by using flow type annotations in our create-react-app project!
lessonDuration 8m 9s
Motion is an important aspect of a complete immersive experience, therefor we are going to look into the animation API **Animated**. **Animated** allows us to express a wide variety of animation patterns to animate text, images, and views. In addition we'll leverage the higher order component, `<CreateAnimatedComponent/>`, to create a rotating box!
lessonDuration 3m 28s
In order to illuminate a scene containing 3D objects a lighting setup is required. In this lesson we'll walk through the available lighting components and create a common outdoor lighting setup. This includes the components: `<AmbientLight/>`, which affects all objects in the scene equally and from all directions; `<DirectionalLight/>`, which illuminates all objects equally from a given direction; `<PointLight/>`, which spreads outward in all directions from one point; and finally `<SpotLight/>`, which spreads outwards in the form of a cone. A handy demo for `<SpotLight/>` can be found [here](https://threejs.org/docs/#api/lights/SpotLight).
lessonDuration 3m 48s
A 360° image can be used to teleport a user to a different place. Alternatively it can be used as a background for a 3D scene. In this lesson we'll learn how we can use various types of images to make 3D VR scenes. We'll learn how to load in panoramas which are [equirectangular](https://en.wikipedia.org/wiki/Equirectangular_projection) images, and we'll also learn how to [cubemap](https://en.wikipedia.org/wiki/Cube_mapping) multiple images. We'll also learn about passing event and style properties to `<Pano/>`.
lessonDuration 2m 50s
To annotate or describe elements in a VR scene we can leverage the built-in `<Text/>` component. In this lesson we'll place multiple `<Text/>` entries in a scene. We'll also explore its various `style` options, such as changing its color and position in your scene.
lessonDuration 6m 27s
In this lesson, we’ll make a few small changes to our scripts and add some environment variables that will be used at build time to get our application ready to be deployed to a production environment using the `now` service. Once properly configured, we’ll use the `now` CLI and publish our application to a production server.
lessonDuration 2m 35s
In this lesson we’ll add a new stateless functional component to our application, update our CSS and verify that our message component is rendered only when there is a message to display.
lessonDuration 6m 59s
A connected component will re-render whenever there is a state change. While we want state changes to update our UI, we don’t necessarily want every state change to render every UI component. In this lesson, we’ll use the connect function to connect components to their own specific pieces of the state tree to make our rendering more efficient.
lessonDuration 12m 15sFree
We'll construct a map using `react-native-maps` and custom animated map makers. We'll build a scroll view that when scrolled horizontally it will animate the marker that it is associated with. Once an item is scrolled to the map will automatically animate and center the map at the markers coordinates. This will be built with a single `Animated.Value` and heavy use of `interpolate` along with `extrapolate: "clamp"` to lock our `outputRange` values.
lessonDuration 6m 45s
We’ll make the input field a “controlled component” by reacting to each change of the input and dispatching an action to the Redux store. Following this model gives us assurance that the UI is always a representation of the current application state.
lessonDuration 2m 7s
The Redux store exposes a subscription mechanism, allowing us to detect state updates. In this lesson, we’ll take advantage of this by rendering our UI in response to state changes. We’ll also get our first look at the dispatch method that will be used to trigger those updates.
lessonDuration 2m 25s
Often times when starting an application, it can be beneficial to render out a static layout to get an idea of what we will be building. Doing this allows us to see exactly how we are going to split our application into individual components. We’ll dive right into JSX by rendering a static version of what our application will look like. We’ll cover the basic syntax of JSX and point out where it differs from html.
lessonDuration 3m 2s
We’ll define a simple state object in the entry point of our application. Once the state has been defined, we’ll pass it into our root component as props and replace the static elements in our rendered output with values from the component’s props. We’ll move from static items to an array, seeing how we can use functions like map to render our UI.
lessonDuration 8m 44sFree
In this lesson we'll show how to build a `ScrollView` and `ScrollElement` component that do not add additional markup. We'll use `context` and `findDOMNode` to register nested items and then expose a `scrollTo` function our `ScrollView` that allows for applications to animate a scroll to hidden list items.