Look at @pomdtr/island and @pomdtr/hydrate_islands to read the whole library source code (less than 50 rows!).