www.dextsolution.com
DEXTUPLOAD
X5
React Reference > DX5

# DX5

Object

  dextuploadx5-react 0.0.1 or later

  DX5 is a wrapper object provided by the React package for safe access to the global dx5 object.

  In React component code, you can use DX5 to obtain an instance or check loading status instead of accessing the global variable directly.

      import { DX5 } from "dextuploadx5-react";

      function handleCreated(id) {
        const dx = DX5.get(id);
        console.log(dx.getVersion());
      }

  DEXTUploadX5Provider must be loaded first so that the global dx5 object is ready before most DX5 methods can be used.

Methods
  - canonicalize
  - get
  - isLoaded
  - raw