Skip to content

Adds Rect, ReactDOM typings#5

Open
koutoftimer wants to merge 3 commits into
bitburner-official:mainfrom
koutoftimer:feature-react
Open

Adds Rect, ReactDOM typings#5
koutoftimer wants to merge 3 commits into
bitburner-official:mainfrom
koutoftimer:feature-react

Conversation

@koutoftimer

Copy link
Copy Markdown

Sooner or later one would like to extend game with some custom UI and using already existed framework: React, is very handy. Plus you don't need a lot of effort, just include typings and tell tsc to produce plain js (not jsx). Typing versions are taken from game's repo. Maybe it will be better to sync versions via script similar to updateDefs.js.

This example have to requirements and suppposed to approve ability
to use React for your custom UI. It is not well suitable for real
world problems.
It contains out of topic code but illustrates handier usage
kateract pushed a commit to kateract/bitburner-scripts that referenced this pull request May 7, 2023
Ensure filesync is always latest version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant