All Projects → jaredpalmer → Razzle Unrouted

jaredpalmer / Razzle Unrouted

Blazingly fast server-rendered MVC Webapps with Preact and Webpack

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Razzle Unrouted

My React Hooks
React/Preact/Orby.js Hooks I used in personal projects, all in public domain form. Copy and paste or do as you wish.
Stars: ✭ 14 (-64.1%)
Mutual labels:  preact
Nuxt.js
The Intuitive Vue(2) Framework
Stars: ✭ 38,986 (+99864.1%)
Mutual labels:  server-rendering
Preact Boilerplate
🎸 Ready-to-rock Preact starter project, powered by Webpack.
Stars: ✭ 959 (+2358.97%)
Mutual labels:  preact
React Ssr Starter
All have been introduced React environment
Stars: ✭ 20 (-48.72%)
Mutual labels:  preact
Hydrocarbon
not just an rss reader
Stars: ✭ 21 (-46.15%)
Mutual labels:  preact
Jetweet
Jetweet is a mini twitter clone with basic functionalities, Made using ASP.NET CORE and Entity framework technologies
Stars: ✭ 29 (-25.64%)
Mutual labels:  mvc
Weather Preactpi
A tiny UI for daily weather forcasts ⛈
Stars: ✭ 13 (-66.67%)
Mutual labels:  preact
Codegen
A model-view based code generator written in Java
Stars: ✭ 36 (-7.69%)
Mutual labels:  mvc
Preact
⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.
Stars: ✭ 30,527 (+78174.36%)
Mutual labels:  preact
Htm Editable Resume
An highly editable resume form developed with HTM (Hyperscript Tagged Markup) which is JSX-like syntax in plain JavaScript.
Stars: ✭ 31 (-20.51%)
Mutual labels:  preact
Electron Webpack Preact
Simple Boilerplate for Electron 🖥️ Preact ⚛️ Webpack ⚡
Stars: ✭ 20 (-48.72%)
Mutual labels:  preact
Recife
A powerful MVC Framework for GraphQL
Stars: ✭ 20 (-48.72%)
Mutual labels:  mvc
Slidecontrol
Slidecontrol enables you to control your slides with your phone 📱
Stars: ✭ 30 (-23.08%)
Mutual labels:  preact
Ffcms
FFCMS 3 project distributive
Stars: ✭ 15 (-61.54%)
Mutual labels:  mvc
React Colorful
🎨 A tiny (2,5 KB) color picker component for React and Preact apps
Stars: ✭ 951 (+2338.46%)
Mutual labels:  preact
Ssm redis template
An template based on Maven, using Spring + Spring MVC + mybatis + spring-data-redis frames. It can be used to construct a new Java Web Appliaction quickly
Stars: ✭ 13 (-66.67%)
Mutual labels:  mvc
Laravel Nuxt
A Laravel-Nuxt starter kit.
Stars: ✭ 943 (+2317.95%)
Mutual labels:  server-rendering
Blaze
⚡ File sharing progressive web app built using WebTorrent and WebSockets
Stars: ✭ 991 (+2441.03%)
Mutual labels:  preact
Wasmboy
Game Boy / Game Boy Color Emulator Library, 🎮written for WebAssembly using AssemblyScript. 🚀Demos built with Preact and Svelte. ⚛️
Stars: ✭ 963 (+2369.23%)
Mutual labels:  preact
Rankmusic
RankMusic音乐排行榜 一个使用kotlin 语言开发的android项目。
Stars: ✭ 30 (-23.08%)
Mutual labels:  mvc

Razzle Unrouted

Sometimes, you don't want to build an SPA.

The Problem with Single Page Applications...

They take a while. For a single view you need to write an API endpoint and then write the data fetch on the client. In contrast, with a good ol' web app, like a 2007-style web app, you just get the data and pass it to your template. memba?

Speaking of templates...

Templates suck. Components kick ass. As it turns out, React is a great templating language. However, in prior projects like express-engine and express-react-views, they required completely separate client-side JavaScript. What does that mean? Well you'd get to use React for templating, but then would need to sprinkle client-side JavaScript wherever you still needed it. For example, modals and buttons and other stuff wouldn't work, because that code was never going to be run in the browser.

The Solution

This is an example of how to solve this problem. Using Razzle, this project shows how you could use Preact as a templating language for Express, but then also reuse the same components on the client (without the need for client-side routing). It works by creating a webpack entry for each component in the views directory and using express middleware to inject props.

Differences from other (p)React apps

  • There is no client-side "router." You just use vanilla <a> tags
  • You'll need to handle CSRF
  • You'll need cookies and sessions for authentication
  • Data is fetched in express controllers (for now)
  • You can ship your idea 2-3x faster than you would with an SPA.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].