Giter Site home page Giter Site logo

back-to-the-roots-with-remix's People

Contributors

korzio avatar paulcodiny avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

paulcodiny

back-to-the-roots-with-remix's Issues

2. Add feature load data from api endpoints on backend

The current esbuild-experiment provides web server endpoints which can send data or rendered React components.
Originally, Remix processes API data requests on backend and passes data to components before they are rendered. Design and implement a way for experiment esbuild web server to process data endpoints and use it for generating React components on backend.

  1. Clone back-to-the-roots-with-remix repository
  2. Find web server endpoint definitions
  3. Design and implement a solution for fetching data on backend side before rendering React components. Hint: You can start by attaching, placing route (in Remix - loader) function call inside the component method.

1. Implement alternative web server for esbuild experiment

In the current esbuild-experiment we've used fastify Node.js framework as a web server.
Remix community has onboarded and maintains multiple adapters for this purpose. Provide alternative web server adapter - for instance ExpressJS, to register routes and React server side rendered components.

  1. Clone back-to-the-roots-with-remix repository
  2. Find Web server definition
  3. Create a new adapter (it might need to further separate code first - dev-server, utils, etc) by introducing a new turbo package. Hint: You can start by just replacing current functionality

3. Use streams to render React components on backend

The current esbuild-experiment provides web server endpoints which can render React components via renderToStaticMarkup function, which synchronously translates components into HTML. This approach has serious performance drawbacks. Design and implement a way for experiment esbuild web server to stream components from web server render endpoints to generate React components on backend.

  1. Clone back-to-the-roots-with-remix repository
  2. Find web server endpoint definitions
  3. Design and implement a solution for fetching data on backend side before rendering React components. Hint: It's much easier implement it with Express web server first

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.