I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Just an FYI, that isn’t true anymore. Not since React 17
With the new transform, you can use JSX without importing React.
@franciscomonellole If you do this React.useState you obviously do have to have React imported. But most people just import the hook they need directly.
import { useState } from 'react';
// Example use
const [count, setCount] = useState(0);
Hmm, news to me. That doesn’t seem to be the case with React Native, using React 17 - it still makes me import. Hmmm. At least the linter screams if I leave it off.