zouhir / preact-habitat

Zero configuration Preact widgets renderer in any host DOM
MIT License
518 stars 43 forks source link

Update doc example #27

Closed shavidzet closed 6 years ago

shavidzet commented 6 years ago
import habitat from 'preact-habitat';
import WidgetAwesome from './components/WidgetAwesome';

let habitat = habitat(WidgetAwesome);

habitat is already used while we import package and it would be better if we don't override variable. I think it needs to have different name like habitatTemplate or something else except habitat

zouhir commented 6 years ago

just merged a fix for this example! good catch! thank you!