This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Util Component */ | |
const Optional = ({ condition, Fallback, children }) => ( | |
condition | |
? {children} | |
: !!Fallback ? {Fallback} : null //excuse the double ternary - better solved with defaultPropTypes | |
) | |
/* Loader Util Component */ | |
const Loader = ({ isLoading, children }) => ( | |
<Optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Your First Grid!</title> | |
</head> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.grid { | |
display:grid; | |
grid-template-columns: repeat(5, 1fr); | |
grid-gap: 1rem; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +cameronolivier is my blockchain ID. https://onename.com/cameronolivier |