Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

change project from js to jsx

I see people using jsx files in Fitbit studio. How do I change from js to jsx in Fitbit studio?

Best Answer
0 Votes
5 REPLIES 5

Hi @compjotr - you can rename them, but they need to be in the correct folders and of the correct construction.

 

If you start a new Settings project in Studio it will give you a working sample and structure.

Author | ch, passion for improvement.

Best Answer
0 Votes

Thanks! is There any jsx guides in Fitbit developer I'm missing?

Best Answer
0 Votes

@compjotr- these might be useful Companion Guide

Companion API

Author | ch, passion for improvement.

Best Answer
0 Votes

...and this.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Hi, just to clarify: you can't write an entire fitbit app in React.
There is only a subset of react used in the companion-structure to define a limited set of components, which are described in the documentation. Everything else needs to be JS/TS.

Best Answer
0 Votes