import React, { useState } from 'react' import SyntaxHighlighter from 'react-syntax-highlighter' import classNames from 'classnames' import './CodeExamples.scss' import Colors from './Colors' import { python, curl, node, go } from './Code' export default function CodeExamples() { const [active, setActive] = useState(1) return (
{active === 1 && ( {curl} )} {active === 2 && ( {python} )} {active === 3 && ( {node} )} {active === 4 && ( {go} )}
) }