Hellenic / react-hexgrid

Build interactive hexagon grids with React
https://hellenic.github.io/react-hexgrid/examples/
MIT License
318 stars 130 forks source link

use new react context #24

Closed IcculusC closed 2 years ago

IcculusC commented 6 years ago

should be squashed if you decide to accept the PR

Hellenic commented 5 years ago

Hey! Thanks a lot. Totally missed this one. Looks like nice updates. I'll try to dig in to this during upcoming holidays and try it out!

IcculusC commented 5 years ago

@Hellenic hehe I actually forked the repo and refactored everything, if you'd like to take a look at that you might be interested in adopting some of the stuff I did. I basically wanted something more robust with much larger maps, although I never got there before I got distracted. It's got some basic concepts that are generally more modern React, as well as a totally different paradigm for rendering things(at least in my most recent branch). I also included hover, selection, tile metadata, and some other candy. https://github.com/icculusc/react-hex-engine

isaacbatst commented 3 years ago

Hello @Hellenic ! Are you alright? Do you have the intent to merge this? Meanwhile, I published here a temporary package with it.

isaacbatst commented 3 years ago

@IcculusC didn't use the package you provided, because it came with some errors, just seemed easier to do like I did.

nearwood commented 3 years ago

Wow, I just published a package as well.

I didn't see this PR though, that would have saved me some time.

Hellenic commented 2 years ago

Oh wow. First of all, thanks for the contribution! Sorry that you've had to publish another packages. As it's probably obvious I haven't had time for this library and probably won't.

However, I'm happy to share publishing rights to the npm, and you as collaborators to the repo if you wish?

jannikbuschke commented 2 years ago

There is a new version 2.0.0-beta.2 which uses the context api. Closing this for now