What type of casing should be used when adding a component name after a function keyword?
kebab-cased
lowerCamelCase
PascalCase (UpperCamelCase)
There are two components at the root of the src folder:
ExampleandApp. What syntax should you use to import theExamplecomponent into theAppcomponent?import “Example”;
import Example from "./Example"
import Example;
True or False: You can omit the
./from the import statement when both the exported and the imported components are in the same folder.True
False
Pick the correct syntax needed to export a component so that it can be imported.
export default;
export example;
export standard Example;
export default Example;
You've imported the
Examplecomponent into theAppcomponent. What will the following syntax do:return ( <Example /> )?It will render the
Appcomponent on the screen.It will show a warning.
It will throw an error.
It will render the
Examplecomponent on the screen.
