Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flareact Consideration #368

Open
abdelhamid-attaby opened this issue Mar 21, 2021 · 2 comments
Open

Flareact Consideration #368

abdelhamid-attaby opened this issue Mar 21, 2021 · 2 comments

Comments

@abdelhamid-attaby
Copy link
Collaborator

First of all, thanks @geelen for this great project, it is really a game changer and I believe it will get a huge impact in the future.

I would like to suggest considering converting Flareact into FAB as it is a very minified SSR-support React framework and well tested in Cloudflare Workers.

The bundle size produced is around 100 KB for an initial project with a milliseconds response time.

@geelen
Copy link
Contributor

geelen commented Mar 21, 2021

Yes! I haven't looked into the internals of Flareact, but I'd be super keen to see how easy it is to convert. It should just be a matter of figuring out what needs to go where, and wiring up its server side renderer to the FAB middleware. Is that something you'd be able to help with? I'll have some time this week to assist but otherwise my focus is on NextJS just at the moment.

@abdelhamid-attaby
Copy link
Collaborator Author

@geelen they are mentioning that it is almost the same as Next.js APIs

Flareact is modeled after the terrific Next.js project and its APIs. If you're transitioning from Next.js, a lot of the APIs will seem familiar, if not identical!

I also inspected the assets generated from the build against the ones generated from Next.js and they are almost similar. The only challenging now for me is the workers file which should be mapped to the server.js file.

I can start creating an input-flareact package and ask for your help if I need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants