refactor: replace 'preact' with 'react' (#1048)

This commit is contained in:
Aman Harwara
2022-05-30 12:42:52 +05:30
committed by GitHub
parent e74b4953ea
commit 8c368dd96b
231 changed files with 4794 additions and 4302 deletions

View File

@@ -0,0 +1,5 @@
import { dateToLocalizedString } from '@standardnotes/snjs/'
export const formatLastSyncDate = (lastUpdatedDate: Date) => {
return dateToLocalizedString(lastUpdatedDate)
}

View File

@@ -1,10 +0,0 @@
import { render } from 'preact'
/**
* Source: https://stackoverflow.com/questions/50946950/how-to-destroy-root-preact-node
* For some reason importing `import { unmountComponentAtNode } from 'preact/compat'` inside of app/index.tsx
* results in the app failing to compile.
*/
export function unmountComponentAtRoot(root: HTMLElement) {
render(null, root)
}