bun-community / create-templates

48 stars 16 forks source link

Update React template to use Typescript #10

Open sagiereder opened 1 year ago

sagiereder commented 1 year ago

Hello,

I noticed that the React template currently uses plain JavaScript and does not include Typescript. As Typescript has become the preferred language for many React developers and is already included in the Next.js template, I believe it would be valuable to update the React template to use Typescript as well.

In fact, I have found myself modifying the result of bun create react to Typescript multiple times lately. Therefore, I would like to propose this change and offer to write the necessary modifications.

noahehall commented 1 year ago

@sagiereder why would you need the typescript version? CRA will add a bunch of stuff you dont need in order to support it

bun treats typescript as a first class citizen and none of your downstream dependencies need configuring. add a tsconfig.json and everything should work