About Component
Explore more about how to set up our own About modal component in this lesson.
We'll cover the following...
The About Component
In this application, we’ll look at the Modal
component. It has the isOpen
and onRequestClose
properties, which determine when to open the Modal component and what should happen when we close it. There is also an IconButon
component that has an onClick
event handler, which calls an onClose function to hide the modal. Finally, we have a Divider
component for styling the hr
tag.
This is what the application looks like:
GAID
Not Specified...
Copyright (c) 2020 John Sheehan Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Making the About component
The About modal component
Now we will look at the About
modal component, which will consist of the following when it opens:
- Window title
- Close button
- Image