$ yarn add @qunhe/3d-model-viewer-sdk
# or
$ npm i @qunhe/3d-model-viewer-sdk -S
import React, { useEffect } from 'react';
import koolViewer from '@qunhe/3d-model-viewer-sdk';
import from '@qunhe/3d-model-viewer-sdk/lib/sdk-ui.min.css'
function App() {
useEffect(() => {
new koolViewer({
mount: document.getElementById('app'),
modelId: '3FO4GF8R3NYC',
autoRotate: false,
});
}, []);
return (
<div id="app"></div>
)
}
import koolViewer from '@qunhe/3d-model-viewer-sdk/lib/sdk.min.js';