I want to create and publish components using bit.dev with JavaScript. But when initialize a new workspace using bit new react (react is the template), the react template is generated with typescript. I want to use javascript instead. How to do it?
How to initialize bit.dev workspace with JavaScript
157 views Asked by Nandanunni A S At
1
You can do that by using the default react-env and the templates provided, but you can also create your own environment without Typescript and your own templates. I think that you can get by with the starting templates at the beginning without hussle, and then once you understand better environments and templating, create some of your own.
Steps to create a JS component from a template
Create an environment
now you can explore the available templates:
The output will be:
Create the JS component
So, now, we can use the react-js template:
The output will be:
Source: CLI Reference