Skip to content

Commit

Permalink
fix: import of React hooks for SSR bundling (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnBra committed May 26, 2020
1 parent 62b7805 commit 2272c2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/usePalette.tsx
@@ -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 2272c2f

Please sign in to comment.