import React, { useRef, Component } from 'react'; import { useReactToPrint } from "react-to-print"; import { Row, Col, Button } from "reactstrap"; import Head from 'next/head' import SignatureCanvas from 'react-signature-canvas' import ComponentToPrint from "./SuratBA"; import ReactToPrint, { PrintContextConsumer } from 'react-to-print'; class BeritaAcara extends Component { render() { // console.log(this.props.laporan) return (
this.componentRef}> {({ handlePrint }) => (
)}
{/*
*/} (this.componentRef = el)} /> {/*
*/}
); } } export default BeritaAcara