Documentation issue
ajmas opened this issue · comments
Andre-John Mas commented
The documentation indicates the import is:
import ReactInterval from 'react-interval';
The code and testing indicates it should be:
import {ReactInterval} from 'react-interval';
Nikita Butenko commented
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.