nkbt / react-works

🍇 Monorepo for React components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation issue

ajmas opened this issue · comments

The documentation indicates the import is:

import ReactInterval from 'react-interval';

The code and testing indicates it should be:

import {ReactInterval} from 'react-interval';

It works either way.

Current docs are copy of previous docs, changing it to import {ReactInterval} from 'react-interval' would be a breaking change and reason to publish new version, so I decided to keep it as it used to be, but internally add named export, since in all the code we use at work there are only named exports.