The example instructions specify using @babel/preset-react. To produce the transform you are showing in the readme, I think it should be suggesting use of @babel/plugin-syntax-jsx instead.. Using preset react transforms your JSX into JS.
Perhaps I am wrong but, but i had much more luck with the below.
The example instructions specify using
@babel/preset-react
. To produce the transform you are showing in the readme, I think it should be suggesting use of@babel/plugin-syntax-jsx
instead.. Using preset react transforms your JSX into JS.Perhaps I am wrong but, but i had much more luck with the below.