3D models viewer with react.js。文档地址:https://xiaxiangfeng.github.io/react-3d-model/index.html#/
npm i react-3dmodelx
import React from 'react';
import Model from 'react-3dmodelx';
export default () => (
<div style={{ maxWidth: 800, width: '100%', height: 400, margin: 'auto' }}>
<Model.FBX src="./Samba%20Dancing.fbx" />
</div>
);
Demo:
Install dependencies,
$ npm i
Start the dev server,
$ npm start
Build documentation,
$ npm run docs:build
Run test,
$ npm test
Build library via father
,
$ npm run build