GithubHelp home page GithubHelp logo

Comments (9)

ANovokmet avatar ANovokmet commented on June 25, 2024 1

And it works well with Angular, too :)

from svelte-gantt.

ANovokmet avatar ANovokmet commented on June 25, 2024

The built module is already library agnostic - It's made with Svelte but the dist files have no other dependencies except moment.js (and I hope that will change too, see https://github.com/ANovokmet/svelte-gantt/blob/gh-pages/dist/lib.js), and that is one of the reasons why I decided to use Svelte.

I could however help you import it in a React project, and fix any issues preventing it from being used with React. Another good option is writing a wrapper library for React.

from svelte-gantt.

AlexBHarley avatar AlexBHarley commented on June 25, 2024

Gotcha, thanks for getting back to me. Makes sense that the bundle is agnostic actually. I'll take some time to see how it plays with React and let you know!

from svelte-gantt.

fabiiomiiguel avatar fabiiomiiguel commented on June 25, 2024

The package works great with Vue.js

from svelte-gantt.

AlexBHarley avatar AlexBHarley commented on June 25, 2024

Slowly starting to get the React adapter together, would you want it part of this repository or my own?

from svelte-gantt.

ANovokmet avatar ANovokmet commented on June 25, 2024

Slowly starting to get the React adapter together, would you want it part of this repository or my own?

I think it's better for that to be another repository.

from svelte-gantt.

ANovokmet avatar ANovokmet commented on June 25, 2024

@darekeapp I've sent you an example piece of code on how to load svelte-gantt in a react component I've made in codesandbox.io. The missing thing is svelte-gantt.css which is obviously missing from the snippet. Please refer to the svelte-gantt installation instructions. I am not a react developer and I'm not aware of the best practices on loading CSS into react apps, but usually you use a <link> tag in the <head> element.

from svelte-gantt.

ngohoang1254 avatar ngohoang1254 commented on June 25, 2024

@darekeapp I've sent you an example piece of code on how to load svelte-gantt in a react component I've made in codesandbox.io. The missing thing is svelte-gantt.css which is obviously missing from the snippet. Please refer to the svelte-gantt installation instructions. I am not a react developer and I'm not aware of the best practices on loading CSS into react apps, but usually you use a <link> tag in the <head> element.

Can you send me that codesanbox.io. I have problem build this chart in React.

from svelte-gantt.

willnaoosmith avatar willnaoosmith commented on June 25, 2024

Tried using it on ReactJS, kept getting Module not found: Error: Can't resolve 'svelte-gantt' even after installing it and importing as said on README.md

from svelte-gantt.

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.