how i can use hot-loader for Preact?
See original GitHub issuesituation:
function Popup(){
const [state, setState] = useState(false)
function openPopup(){ setState(true) }
return <div>
<button onClick={openPopup}>Open</button>
{state && <div className='popup'>
My Popup
</div>}
</div>
}
- I want open popup
- then i want change text
My Popup
toMy Popup!!!
and pressctrl + s
- text must change, but popup should not close
Now I am doing this with react + react-hot-loader
, how can this be do this with preact
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
preact-hot-loader - npm
Start using preact-hot-loader in your project by running `npm i ... Note: You can safely install react-hot-loader as a regular dependency ...
Read more >How to use the react-hot-loader.preact function in react-hot-loader ...
To help you get started, we've selected a few react-hot-loader.preact examples, based on popular ways it is used in public projects.
Read more >Switching to Preact (from React)
Switching to Preact can be as easy as installing and aliasing ... A common use-case for preact-compat is to support React-compatible third-party modules....
Read more >Preact vs React Engine vs React Hot Loader | What are the ...
Preact is an attempt to recreate the core value proposition of React (or similar libraries like Mithril) using as little code as possible,...
Read more >Browsersync, Webpack + Preact Hot Loader Example
Browsersync, Webpack + Preact Hot Loader Example.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Work for a hot-reloader for Preact is being done here it’s experimental for now.
We’re working on that.