Hacker News new | ask | show | jobs
by benbristow 1798 days ago
Or you just use React and it has that function already built for you...

All you need to do is call setState

1 comments

You certainly doesn't mean that React has your business rules builtin.
No, but it'll deal with changing the UI depending on your state once you've wired the rules in.