This update includes breaking changes to the React API.
We did some reshuffling to make working with React easier. Less code for more impact, and smarter separate of concerns. The docs and examples have been updated to reflect the changes! Also I am trying to submit all my changes as PRs now so hopefully logs will be more automatic in the future.
What's Changed
- useObserve renamed to useTrait
- useTraitEffect has been added to the React package
- useEntityRef has been removed
- createActions moved to core
- useActions now takes actions returned by createActions, the same pattern as Zustand
- ✨ react: useWorld uses a default world if there is no provider by @krispya in #18
- 📝 update React docs by @krispya in #19
Full Changelog: v0.1.5...v0.1.6