diff --git a/README.md b/README.md index 58c0f36..05b548b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ into web pages with script tags: The library can also be imported directly from JSX code with: ```js -import * as XLSX from 'xlsx'; +import XLSX from 'xlsx'; ``` This demo shows a simple JSX component transpiled in the browser using the babel diff --git a/nexthdr.js b/nexthdr.js index 103fdec..18594af 100644 --- a/nexthdr.js +++ b/nexthdr.js @@ -1,3 +1,3 @@ /* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -import * as XLSX from 'xlsx'; +import XLSX from 'xlsx'; import { saveAs } from 'file-saver'; diff --git a/react-native.js b/react-native.js index 682ad7d..dd9ec93 100644 --- a/react-native.js +++ b/react-native.js @@ -1,5 +1,5 @@ /* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ -import * as XLSX from 'xlsx'; +import XLSX from 'xlsx'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, Alert, Image } from 'react-native';