Skip to content

md-web-server/express_serving_minimal_react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal React Served by Express

This is a template for building React.js web apps without browserify, babel, and JSX.

This project sends html to the browser based on authentication logic.
The user will see the unique html allowed by their security role. specified_in_server.js

Installation

git clone https://github.com/MichaelDimmitt/express_serving_minimal_react.git
npm install
node server.js

Why is this project so minimal?

This project is a learning repo for understanding how react can be implemented without webpack/browserfi, and babel transpiling your JSX.

Many use react for its readibility. This project does not have the readibility because it does not take advantage of JSX being transpiled into browser compatable javascript.

Coding is hard without babel:
Correct, this project is about understanding that babel is transpiling your code into: yikes!

Why the express server?
Using an express server we can control the html being sent to the browser based on authentication logic.
The user will see the unique html allowed by their security role. specified_in_server.js

View next Project/Progression

Arguably the reasons why someone uses react: minimal-react-starter
This starter is as minimal as possible while still including Babel and Webpack. why-minimal-react-starter-is-not-more-minimal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published