All Projects → nicolaserny → react-gojs-example

nicolaserny / react-gojs-example

Licence: MIT license
Example to show how to use gojs in a React/Redux environment

Programming Languages

typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-gojs-example

SplashScreenExample
How to implement a Splash Screen in ReactNative
Stars: ✭ 14 (-57.58%)
Mutual labels:  example-project, example-code
Game-Examples
Godot game examples for gotm.io - the Godot Platform!
Stars: ✭ 27 (-18.18%)
Mutual labels:  example-project, example-code
DotNetWithCMake
Your swiss army knife for creating .NET assemblies with CMake and integrating unmanaged code.
Stars: ✭ 50 (+51.52%)
Mutual labels:  example-project, example-code
Excel-Favorites
⭐ This VSTO Add-In creates a custom "Favorites" ribbon. Key distinctive attributes include dedicated buttons for changing the visibility/sort order of sheets, copying visible cells, Excel's camera feature, Snipping Tool, Problem Steps Recorder (PSR) and Windows Calculator. It is written in 3 different versions as a VSTO Add-In in C# and VB.NET a…
Stars: ✭ 37 (+12.12%)
Mutual labels:  example-project
material-ui-Link-within-MenuItem
Example for how to use `react-router/Link` within `material-ui/MenuItem`
Stars: ✭ 19 (-42.42%)
Mutual labels:  example-project
gradle-plugin-bootstrap
All you need to create a custom Gradle plugin
Stars: ✭ 24 (-27.27%)
Mutual labels:  example-project
blockchain
Blockchain, basic implementation in go
Stars: ✭ 16 (-51.52%)
Mutual labels:  example-code
entref-spring-boot
A RESTful DAL (Database Abstraction Layer) reference implementation written using Spring.
Stars: ✭ 19 (-42.42%)
Mutual labels:  example-project
tensorflow-stack-ts
TensorFlow.js Full-Stack Starter Kit
Stars: ✭ 33 (+0%)
Mutual labels:  example-project
spring-websocket-angular6
Example for using Spring Websocket and Angular with Stomp Messaging
Stars: ✭ 18 (-45.45%)
Mutual labels:  example-project
JavaExamples
Java material for course CCPS 209 Computer Science II, by Ilkka Kokkarinen.
Stars: ✭ 18 (-45.45%)
Mutual labels:  example-code
example-go-tray-gui
An example desktop system tray application that can launch HTML5 windows. Go source with a build process for Windows, Mac and Linux.
Stars: ✭ 49 (+48.48%)
Mutual labels:  example-project
electron-application
Example implementation of electronjs.
Stars: ✭ 11 (-66.67%)
Mutual labels:  example-project
play-java-seed.g8
Play Java Seed template: use "sbt new playframework/play-java-seed.g8"
Stars: ✭ 20 (-39.39%)
Mutual labels:  example-project
play-scala-seed.g8
Play Scala Seed Template: run "sbt new playframework/play-scala-seed.g8"
Stars: ✭ 66 (+100%)
Mutual labels:  example-project
django-tip-02
#DjangoTip 02
Stars: ✭ 32 (-3.03%)
Mutual labels:  example-project
supabase flutter
Using Supabase in Flutter
Stars: ✭ 38 (+15.15%)
Mutual labels:  example-project
dgraph graphql go
A GraphQL + Dgraph + Go + HTTP based backend service demo.
Stars: ✭ 49 (+48.48%)
Mutual labels:  example-project
ampjucks
Boilerplate and base project to create static websites with AMP, Nunjucks and Gulp
Stars: ✭ 18 (-45.45%)
Mutual labels:  example-project
gojs-angular-basic
Simple project demonstrating usage of our GoJS/Angular components
Stars: ✭ 29 (-12.12%)
Mutual labels:  gojs

Build Status TypeScript

react-gojs-example

Example to show how to use GoJS in a React/Redux environment with react-gojs.

add a new state

You can try the live demo here.

Requirements

  • Node.js
  • Yarn

Build and Start

  • Run yarn install
  • Run yarn run build
  • Run yarn start

How it works?

GoJS is not designed to work out of the box with React and Redux. This project shows how to create a GoJS diagram with react-gojs. react-gojs provides a generic React component that wraps the diagram object and makes the integration in a React project easier.

Key parts of the project:

  • Diagram model (DiagramModel<NodeModel, LinkModel> type): The model is stored in the redux state. The idea is to add, remove or update nodes or links by dispatching actions.
  • MyDiagram: example of a presentational component that uses GojsDiagram with a custom layout (based on the GoJS minimal sample)
  • MyDiagramContainer: example of a container component connected to a redux store (the react+redux container pattern)
  • The onModelChange event (MyDiagram component) is used to sync our model (in the redux state) when a link or a node is removed from the ui diagram (with the delete key for example).

License

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].