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

Add support for JS frameworks #243

Open
samajammin opened this issue Jun 2, 2020 · 2 comments
Open

Add support for JS frameworks #243

samajammin opened this issue Jun 2, 2020 · 2 comments
Labels
feature-request New feature or request

Comments

@samajammin
Copy link
Collaborator

samajammin commented Jun 2, 2020

Summary

All our templates currently use jQuery, which is verbose, limits the functionality of the frontend applications & can be difficult to read with the all the DOM selectors/manipulation muddled within the web3 logic.

Let's explore adding the ability for users to select npm packages / JS frameworks to use & updating the templates to use these (e.g. starting by updating all templates to use React).

Motivation

The goal of Studio is to showcase the Ethereum stack in a potential real-world project but with zero configuration. In the majority of cases, developers would want to create a project using a major JS framework (React, Vue, Angular, Ember, etc.)

Feedback from our recent dev survey echoed this sentiment. The current jQuery implementation is particularly problematic in the CryptoPizza template: the code is all in a single JavaScript file which is larger than previous ones, and it conflates blockchain and UI responsibilities, making it difficult to find what one's looking for. A more modern UI library would help reduce much of the UI boilerplate code.

Describe alternatives you've considered

  • Do nothing

Additional context

  • A potential way to verify this demand could be to scrape a list of repos from the recent ETHGlobal hackathon to see tech stacks are most used across projects
  • Before committing to this we should try to gain an understanding of how large of an undertaking this would be
@javier-tarazaga
Copy link
Contributor

Yeap, this is something we wanted to do for a long time but of course, will require a bit of time to actually do. Codesanbox or Stackblitz are great examples of how this could be done and could be used as inspiration for developing this feature.

@samajammin
Copy link
Collaborator Author

As another example, https://playground.substrate.dev/ uses React (though their app template is quite complex).

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

No branches or pull requests

2 participants