Skip to content

Commit

Permalink
[FIX] import of React hooks for SSR bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBra committed May 23, 2020
1 parent 62b7805 commit 111c4cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/usePalette.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useEffect, useReducer } from "react";
import React from "react";
const { useEffect, useReducer } = React;
import { getPalette, PaletteColors } from "./getPalette";

export type PaletteState = {
Expand Down

0 comments on commit 111c4cf

Please sign in to comment.