Skip to content

riot/hot-reload

Folders and files

NameName
Last commit message
Last commit date
Jul 9, 2022
Apr 4, 2020
Apr 4, 2020
Jan 18, 2017
Feb 24, 2019
Jul 11, 2021
Dec 18, 2016
Jan 23, 2023
Jul 9, 2022
Jul 9, 2023
Aug 16, 2022
Mar 9, 2019

Repository files navigation

Riot hot reload api

Riot.js hot reload logo

Build Status NPM version NPM downloads MIT License

Api that will extend riot making your tags hot reloadable.

Important

If you are using Riot.js < 4.0.0 please check the v3 branch

Usage

import reload from '@riotjs/hot-reload'
import Component from './my-component'
// refresh all the DOM nodes called 'my-component' without losing their state
reload(Component)