React component names must always start with a capital letter, while HTML tags must be lowercase.
If you want to change selection, open document below and click on "Move attachment"
Quick Start – React <div> <h1>Welcome to my app</h1> <MyButton /> </div> ); } Notice that <MyButton /> starts with a capital letter. That’s how you know it’s a React component. <span>React component names must always start with a capital letter, while HTML tags must be lowercase. Have a look at the result: App.js App.js Download Reset Fork 99 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 function MyButton() { return ( <button> I'm a button </button> ); } Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details