| 12345678910111213141516171819202122232425262728293031 | 
							- 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() {
 
-         return (
 
-             <div>
 
-                 <h1>kekekekekekek</h1>
 
-                 <ReactToPrint content={() => this.componentRef}>
 
-                     <PrintContextConsumer>
 
-                         {({ handlePrint }) => (
 
-                             <button onClick={handlePrint}>Print this out!</button>
 
-                         )}
 
-                     </PrintContextConsumer>
 
-                 </ReactToPrint>
 
-                 <ComponentToPrint ref={el => (this.componentRef = el)} />
 
-             </div >
 
-         );
 
-     }
 
- }
 
- export default BeritaAcara
 
 
  |