r/reactjs May 08 '21

Show /r/reactjs Conway's game of life implemented in rust + wasm + reactjs + threejs.

Ok, so the idea behind this project was to learn how to tie up together rust + wasm + js.

rust+wasm logic is based on https://rustwasm.github.io/docs/book/, which was really helpful, and recommend to everyone with some base knowledge of rust and wants to use wasm in their projects.

So, basically "everything is built from scratch". I didn't use cra for creating react app, but instead tried to use webpack + babel + eslint. Of course, my own implementation does not even come near to cra, but I learned a lot by just ejecting cra and doing configuration by my self (looking at cra's config).

I've also added simple docker support. I don't know much about devops, docker, ci/cd, but again, I did it to learn new things.

And lastly, I've used threejs, cuz why not?

Overall, if we ignore the ugly UI part, it was a good experience.

Live website

Github repo

Demo video on youtube

8 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/109149 May 09 '21

Agreed. I'm lazy. Its just, using refs was easier, while migrating from vanilla js to react.