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:
Example
andApp
. What syntax should you use to import theExample
component into theApp
component?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
Example
component into theApp
component. What will the following syntax do:return ( <Example /> )
?It will render the
App
component on the screen.It will show a warning.
It will throw an error.
It will render the
Example
component on the screen.