GithubHelp home page GithubHelp logo

krablak / react-graalvm-springboot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dtanzer/react-graalvm-springboot

0.0 0.0 0.0 420 KB

License: Apache License 2.0

Shell 2.81% HTML 9.68% TypeScript 51.44% Kotlin 36.07%

react-graalvm-springboot's Introduction

react-graalvm-springboot

I created this project to find out how to do React server-side rendering (SSR) with Spring Boot and GraalVM.

Read about what I did, how I did it and why it works here:

  • Spring and Isomorphic React 1: Setup with GraalVM: How I set up the project so I could develop the React / Typescript app with create-react-app; But also render the same webpack-optimized production build on the server, inside a JVM.
  • Spring and Isomorphic React 2: React Router How to get routing and navigation to work with react-router - Both on the client side and also on the server side.
  • Spring and Isomorphic React 3: First-Load Performance Here I measured the first-load performance of the application and added some tweaks to improve it. After that, the SSRd app took less than half of the time to first render something than rendering client-side only.
  • Spring and Isomorphic React 4: Render Data on the Server Side In this post, I'll show you how to load data dynamically after a client-side navigation over REST. And when the same view is rendered on the server, that data is loaded via a JVM-internal method call (JavaScript to Java) and populated in the HTML code, so that the client side can pick it up without making another network request.

I hope you enjoy the blog posts and find the code useful ;) If you have any questions or feedback, please ad an issue here or ping me on Twitter - I am @dtanzer there.

react-graalvm-springboot's People

Contributors

dtanzer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.