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
<!--transition.html--> | |
<html> | |
<head> | |
<title>D3 Tutorial</title> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
</head> | |
<body> | |
<script> | |
var width = 10000; |
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
function main(){ | |
const [values, setValues] = React.useState({ | |
media_type: "" | |
}); | |
const options = [ | |
{name: "Facebook", value: "FACEBOOK", icon: faFacebook}, | |
{name: "LinkedIn", value: "LINKEDIN", icon: faLinkedIn}, | |
{name: "Instagram", value: "INSTAGRAM", icon: faInstagram}, |
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
import React from "react"; | |
function useFallbackImageInSSR(fallbackSrc) { | |
const ref = React.useRef(null); | |
const onError = React.useCallback( | |
event => { | |
event.target.src = fallbackSrc; | |
}, | |
[fallbackSrc] | |
); |