menu
up-caret
down-caret

React Static

A fast, lightweight, and powerful framework for building static-progressive React applications and websites.

# General

Anything & Everything

Trending conversations
Noob question about embedding script tags from other sites
@kirkleton · 38d
Is it possible to use react-native-web with react-static?
@dancoman · 2d
Migrating issue: `sharedHashesByProp` is undefined (build fails if not changing…
@tn1ck · 38d
Why can't I pass route data to '/' path in v6
@patrickharden · 9d
Dynamic Routes work but show 404 in console
@kirkleton · 4d

Watercooler Chat

May 24, 2018 at 4:44pm

A place for chit-chat :)


May 24, 2018 at 4:49pm

Still loving react-static.

  • reply
  • like

Me too ;)

  • reply
  • like

Me too! I think I'd be looking for a way out of development without it. Moving away from Rails to RS feels the same as moving away from PHP some years back.

  • reply
  • like

Are we moving the main discussion here?

  • reply
  • like

Basically :)

  • reply
  • like

At least for now.

  • reply
  • like

We need to give spectrum a good college try!

  • reply
  • like

May 25, 2018 at 2:57pm

I'll have to see how long before my company blocks this like it did Slack.

like-fill
2
  • reply
  • like

May 26, 2018 at 1:07pm

Just build my first static site with react-static and I must say i'm impress. Very simple to configure, no problem, Very very nice job! I hope to get the time to take a look at the code and to participate at the development!

like-fill
1
  • reply
  • like

May 29, 2018 at 7:31pm

The more I learn about RS, the cooler it gets! Thanks for all your hard work on this project

like-fill
2
  • reply
  • like

So far what I've seen / been able to build is 🔥🔥🔥 - kudos to the team

like-fill
2
  • reply
  • like

Awesomet!

  • reply
  • like

May 30, 2018 at 3:35pm

Can you use a golang server with this? instead of node server

  • reply
  • like

You can pull your data from anywhere you want as long as you do it in the static.config.js

  • reply
  • like

If you are referring to the dev server, that's different. React-Static is built on webpack and thus built on Node to run the dev server and build the site.

  • reply
  • like

ok, am I correct in thinking that i could build the site and upload it to an aws go server, and once the first load is done the site would run like a normal react app (with aggressive preloaded routes)?

  • reply
  • like

what I'm finding hard to get my head around is if your framework works the way I think it does, i can get away from SSR and have the best of both static fast website loads and then a SPA thereafter. Why wouldn't anyone do this over SSR solutions that tie you to node in production?

  • reply
  • like

You're somewhat on the right track

  • reply
  • like

React-Static produces a static application, eg. one that doesn't require a server to run (other than a file server)

  • reply
  • like

And you can deploy it to anywhere that serves static files (Netlify, GCS, S3, etc)

  • reply
  • like

So with that, to answer your first question, when any page on the site loads, it automatically bootstraps a react application over the top of the HTML and gives you what you are referring to as a "normal react app"

  • reply
  • like

From that point, you can absolutely treat it as a regular SPA

  • reply
  • like

You can fetch dynamic data, do auth-only routes, build a SASS product, anything you can do with web tech

  • reply
  • like

That sounds incredible

  • reply
  • like

It's basically like create-react-app but with extremely fast and efficient static rendering built-in

  • reply
  • like
Show more messages