react2-lighthouse-viewer
This component is a React wrapper for the lighthouse-viewer.
It depends on lighthouse-viewer, package that exports the original lighthouse-viewer from Google
as an ES modules package.
Getting started
- Install using
npm install react2-lighthouse-viewer
or yarn add react2-lighthouse-viewer
- Import in your project:
import React2LighthouseViewer from "react2-lighthouse-viewer";
- Load the component in your code as follows:
<div id="app">
<React2LighthouseViewer json={json} />
</div>
- That's all!