View on GitHub

Hello World

Component Naming: PascalCase

Here’s an example of a component definition:

function UserProfile() {
  return <View>...</View>;
}

File Naming: kebab-case

Putting It Together

Here’s how it looks in practice:

Example file (user-profile.js):

function UserProfile() {
  return <View>...</View>;
}

export default UserProfile;

Then, in your app, you’d use it like this:

import UserProfile from "./user-profile";

function App() {
  return <UserProfile />;
}

Why This Matters