I was trying to make some component , I'm new in React and I tried with some basics like creating simple component that stored <h1></h1>
tag with Hello World
in it . I noticed that when I'm turning Myfunc
's first letter to lowercase "m" it is rendering nothing but empty page although I'm changing it trough the something.js
too , I searched in the web and it seems that there's something like rule here , anyway...
is there anyway to use component with lowercase ? I'm forgetting that rule many time
import React from "react";
import Myfunc from "./something.js";
function App(){
return(
<div>
<Myfunc/>
</div>
);
}
export default App;