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

Does react integration is outdated ? #1222

Closed
igorlino opened this issue Dec 9, 2023 · 6 comments
Closed

Does react integration is outdated ? #1222

igorlino opened this issue Dec 9, 2023 · 6 comments
Labels

Comments

@igorlino
Copy link

igorlino commented Dec 9, 2023

Question

The latest version of the react integration with AmCharts mentions 2 things at the top:

  1. creation of empty react project using create-react-app
  2. starting the example with a Class-based component

https://www.amcharts.com/docs/v5/getting-started/integrations/react/

does it make sense to update the documentation using a recommended/maintained tool for creating the project and also using a hook base example at the top?

I think Vite toolis closest to CRA while being easy to use and very modern and powerful. And luckily also framework agnostic.

Environment (if applicable)

latest AmChart 5
latest React 18

Additional context

Announcement of the dead of create-react-app under: reactjs/react.dev#5487 (comment)

The new official react documentation removed create-react-app: https://react.dev/learn/start-a-new-react-project

@Pauan
Copy link
Collaborator

Pauan commented Dec 10, 2023

@igorlino I read through the link you posted, and it sounds like they're not removing create-react-app, but are instead tweaking the way it works a bit.

Do you have any evidence that they're outright deprecating / removing create-react-app entirely?

@igorlino
Copy link
Author

Fair counter question.

My main focus is about CRA in the SPA context.
Valid is also would be to cover both scenarios of real world: SPA and SSR.

I see multiple aspects why CRA deprecation is a reality:

  1. The new official react documentation did not include anymore CRA a starting point for react: https://react.dev/learn/start-a-new-react-project
    their focus is more on server-side-rending (SSR) react-based frameworks (next.js or remix).

The CRA maintainers don't care much even to tell developers that CRA is deprecated.
facebook/create-react-app#13072
facebook/create-react-app#13333
important questions unanswered since months.

  1. If you see the commits and release of CRA, its basically frozen since 2021.
    https://github.com/facebook/create-react-app/graphs/code-frequency

  2. The underhood bundler of CRA is webpack, which is by 10-20 times slower that modern rust-base bundlers and compilers like SWC.

A robust and widely use alternative for CRA for super easy to use react applications is using Vite with the react templates. By robust I mean the whole dev experience.

CRA is considered now prehistoric and it just died technologically some years ago.

@Pauan
Copy link
Collaborator

Pauan commented Dec 11, 2023

@igorlino Thanks for providing that, but that just reinforces my point:

facebook/create-react-app#13072 (comment)

To summarize, it will become a launcher for other recommended tools, rather than being a standalone tool.

A create-react-app developer said that they intend to keep create-react-app but just tweak it, which is also what they said in the earlier thread.

So it sounds like it will continue to be relevant into the future, it will just defer to other frameworks.

Have they changed their mind and decided to remove it entirely?

@igorlino
Copy link
Author

No, and I don't think they can remove CRA, they are a lots of legacy projects relying on it, but given no commits are done I don't see why would they invest on it give all the good options out there.

Well, its only my opinion. No serious react developer and company will rely on CRA for sure. So in that sense the AmCharts example docu is obsolete.

Ok, that's enough time for me on this topic. Feel free to improve it or not, feel free to close the the ticket also.

@Pauan
Copy link
Collaborator

Pauan commented Dec 12, 2023

I'll discuss this with the rest of the team, about replacing the React tutorial with Vite. Thanks for letting us know about this.

@Pauan Pauan closed this as completed Dec 12, 2023
@Pauan Pauan reopened this Dec 12, 2023
@martynasma
Copy link
Collaborator

The tutorial has been updated:
https://www.amcharts.com/docs/v5/getting-started/integrations/react/

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

No branches or pull requests

3 participants