The react function defines how components are created and referenced.

for a project built with create-react-app , I want to create a function definition component and then reference it to App.js , but keep reporting an error: React" must be in scope when using JSX . The official website documentation really doesn"t understand how to create and reference

.
function Logo(){
  return <div>logo</div>
}

under import React from 'react' at the beginning of the file, although you don't use React

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2283a-2b61c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2283a-2b61c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?