Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hot Module Reloading for Preact

License

NotificationsYou must be signed in to change notification settings

preactjs/prefresh

Fast-refresh for Preact!

Integrations

Writing your own integration

Best practices

Recognition

We need to be able to recognise your components, this means that components shouldstart with a capital letter and hook should start withuse followed by a capital letter.This allows the Babel plugin to effectively recognise these.

Do note that a component as seen below is not named.

exportdefault()=>{return<p>Want to refresh</p>;};

Instead do:

constRefresh=()=>{return<p>Want to refresh</p>;};exportdefaultRefresh;

When you are working with HOC's be sure to lift up thedisplayName so we canrecognise it as a component.

Usage in IE11

If you want to use@prefresh/webpack with IE11, you'll need to transpile the@prefresh/core and@prefresh/utils packages.

About

Hot Module Reloading for Preact

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp