## Install ```shell $ npm i qp-xtermjs ```
npm install qp-xtermjsshell
$ npm i qp-xtermjs
`Basic
`ts
import React, { useCallback, useRef } from 'react';
import { QPXterm } from 'qp-xtermjs';const HelloWorld: React.FC = () => {
const terminalRef = useRef();
const onDidMount = useCallback((terminal: QPXterm) => {
terminalRef.current = terminal;
terminalRef.current?.setMessage(['Hello World', 'https://querypie.com']);
}, []);
return (
<>
>
);
};
export default HelloWorld;
`CustomStyle
`ts
import React, { useCallback, useRef } from 'react';
import { QPXterm } from 'qp-xtermjs';const CustomStyle: React.FC = () => {
const terminalRef = useRef();
const onDidMount = useCallback((terminal: QPXterm) => {
terminalRef.current = terminal;
terminalRef.current?.setMessage(
[
'Hello World ',
'miniature bicycles 특가를 찾고 계신가요? ' +
'AliExpress 에서 다양한 miniature bicycles 상품을 탐색하며 ' +
'고객님 께 꼭 맞는 베스트 상품 을 만나보세요! ' +
'빅 세일 기간 동안 miniature bicycles 상품을 쇼핑하시면 고품질 브랜드뿐만 아니라 초특가 할인 혜택까지 즐기실 수 있답니다. ' +
'가장 중요한 단계가 있어요! 최고의 온라인 쇼핑 을 즐기기 위해 무료 배송이나 무료 반품과 같은 보너스 혜택으로 상품을 필터링하는 것, 꼭 잊지 마세요:) miniature bicycles 관련 아이템',
],
{
useTemplate: true,
},
);
}, []);
return (
onDidMount={onDidMount}
style={{
height: 200,
}}
options={{
fontSize: 12,
fontWeight: '400',
theme: {
foreground: '#000',
background: '#eeeeee',
green: '#006400',
brightGreen: '#006400',
},
}}
/>
);
};
export default CustomStyle;
``