Coder Social home page Coder Social logo

Support for React? about go-app HOT 3 CLOSED

Scusemua avatar Scusemua commented on September 22, 2024
Support for React?

from go-app.

Comments (3)

maxence-charriere avatar maxence-charriere commented on September 22, 2024 1

Hello.
Support for React might be off since React directly deals with HTML nodes.
It would probably creates some conflicts.

from go-app.

oderwat avatar oderwat commented on September 22, 2024

I'm curious to understand what aspects of Go-App have caught your attention. Given that Go-App, originally influenced by React, is a comprehensive Go framework for both backend and frontend development, its compatibility with React might present some challenges. Go-App, which compiles the frontend to WebAssembly (WASM), assumes extensive control over the application, particularly in its interaction with the DOM. This could potentially complicate its integration with React, as both frameworks are designed to manipulate the DOM directly.

It's worth noting, though, that incorporating certain JavaScript frameworks might be feasible, especially those that don't directly modify the DOM. For instance, you can safely invoke JavaScript for specific tasks, such as adding unique event handlers or generating audio, as long as these actions are not DOM-centric. Ideally, these JavaScript functions should be either called from the Go code or designed to call back into Go. This approach allows you to leverage the strengths of both languages while maintaining a stable and efficient application structure.

P.S.: I asked Chat-GPT to reformulate my original text to be less "negative" about the idea with me not being a native English speaker :)

from go-app.

Scusemua avatar Scusemua commented on September 22, 2024

Well, I'm more familiar with Golang than I am with JavaScript/traditional web development at this point, so a system which allowed me to rapidly prototype a web interface using Golang was appealing in and of itself. The PWA aspect of go-app is also appealing, although it isn't a requirement for my use-case by any means.

There are just certain UI components that would be significantly easier to enable if I could drop-in an existing React/JavaScript component. I've had some success embedded small amounts of JS into my go-app application, but once dependencies/JS modules are involved, it becomes tricky...

from go-app.

Related Issues (20)

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.