TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using Firebase with ReactJS

32 pointsby mayop100about 11 years ago

1 comment

masklinnabout 11 years ago
Is it me or is this mixin is storing entirely the wrong thing?<p>If I remember correctly, state is the transient component-local stuff e.g. what a user currently has typed in a field, or whether a pane is open or closed. While you can certainly persist it locally (so the user sees the same thing when he reopens the site&#x2F;application), it seems odd to persist it remotely and not persist props (the application state).<p>Now I understand that the homepage demo uses state, so demoing based on that is fair enough, but building a mixin to remotely persist state?