Create a Simple Reusable React Code Block
Code blocks are a nice addition to documentation but they don’t have to be complex. We can create a simple reusable code block in react. This component will use react hooks and have the following imports: import PropTypes from ‘prop-types’; import React, {useState} from ‘react’; import {CopyToClipboard} from ‘react-copy-to-clipboard’; import IconButton from ‘@material-ui/core/IconButton’; import CopyIcon […]