VOOZH about

URL: https://www.geeksforgeeks.org/reactjs/react-suite-container-basic-layout/

⇱ React Suite Container Basic Layout - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

React Suite Container Basic Layout

Last Updated : 25 Jul, 2022

React suite is a library of React components, sensible UI design, and a friendly development experience. It is supported in all major browsers. It provides pre-built components of React which can be used easily in any web application.

In this article, we'll learn about React suite Container Basic Layout. The container layout can define the main frame of the page using header, content, sidebar, and footer components.

Syntax:

<Container>
 <Header>Header</Header>
 <Content>Content</Content>
 <Footer>Footer</Footer>
</Container>

Creating React Application And Installing Module:

Step 1: Create a React application using the given command:

npm create-react-app projectname

Step 2: After creating your project, move to it using the given command:

cd projectname

Step 3: Now Install the rsuite node package using the given command:

npm install rsuite

Project Structure: Now your project structure should look like the following:

👁 Image
 

Example 1: Below example demonstrates the basic container layout with header, footer, and content.

Output:

👁 Image
 

Example 2: Below example demonstrates the basic container layout with a sidebar.

Output:

👁 Image
 

Reference: https://rsuitejs.com/components/container/#basic-layout

Comment