Last post Nov 05, 2018 04:29 PM by bruce (sqlwork.com)
Nov 05, 2018 12:42 PM|arsalan.khan|LINK
I've made a node js react project by following this documentation
but according to this documentation it uses typescript in react.
how can i remove the typescript from the project.
Nov 05, 2018 04:29 PM|bruce (sqlwork.com)|LINK
you need a transpilar for the jsx code. the sample uses typescript (which added .jsx support). if you don't want to use typescript, you need to pick a different transpiler. the most common one in the react community is babel. to use react modules you will
need a bundler. again the most common is webpack.
if you want to config webpack/babel yourself see:
a more common approach for a beginner is to use the react create scripts. install a current LTS version of node, then:
npx create-react-app my-app