
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.
About the author
A passionate full-stack developer from @ePlus.DEV
Comments
Join the discussionNo comments yet. Be the first to comment.
React Basics
In this module you will explore the basic structure and use of the React.js library. You will learn how to produce single page web applications using React components and to use JSX to style them.






