laiboonh
React vs Phoenix Liveview
Hi all,
I am trying to convince my team to use liveview over the current react. What are some of the points where one should consider using liveview instead of react?
To start off:
- Using one language to code frontend and back saves us from context switching
- Arguably easier to do as there will no need for data serialising and de-seriialising or REST
- …
Most Liked
laiboonh
mindok
Have you read the history lesson on why liveview came to be? You may get some answers there.
tfwright
For me the biggest advantage is keeping all data management in one place. With a react front end, you basically have 2 applications, and each requires its own set of patterns, tests, etc to deal with state. In comparison with just react (it is of course possible, arguably necessary, to leverage other libs to help) live view is a lot more equipped to do this in a robust, reliable way.
In my experience, unless you have absolute top of the line expert react devs, you are looking at 3 or 4 or even more times as much dev time.
I guess this falls under “no need for API” but i feel that formulation drastically undersells the advantage.
Last Post!
innocentoldguy
In my experience, LiveView is faster than React (resulting in a better user experience), is truly multi-threaded rather than using an event loop, is easier to debug, requires a lot less code, and is easier to manage state. The fact that it isn’t JavaScript is also a big win, in my opinion.
Popular in Discussions
Other popular topics
Latest Phoenix Threads
Chat & Discussions>Discussions
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security









