scrimba
Netflix in React JS
Adding our Header to the Browse Container
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Adding our Header to the Browse Container
AboutCommentsNotes
Adding our Header to the Browse Container
Expand for more info
src
containers
browse.js
run
preview
console
import React, { useState } from 'react';
import { Header } from '../components';
import * as ROUTES from '../constants/routes';
import { FirebaseContext } from '../context/firebase';
import { SelectProfileContainer } from './profiles';
import { FooterContainer } from './footer';

export function BrowseContainer() {
const [profile, setProfile] = useState({});

const user = {
displayName: "Karl",
photoURL: "1"
};

return profile.displayName ? (
<><p>Browse Container</p>
<FooterContainer />
</>)
: (<SelectProfileContainer user={user} setProfile={setProfile} />);
}
Console
/browse
-6:48