ReactJS Semantic UI container Element Last Updated : 13 Jun, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article, we will know how to use Container elements in ReactJS Semantic UI. Container element is used to make a container in which we can input some text. Syntax: <Container> <p>Text</p> </Container> Container Types: Container: It is used as a standard container.Text Container: It can reduce its maximum width in order to accommodate a single column of text. Container Variations: Text Alignment: To specify the text alignment. Fluid: It has no maximum width.Creating React Application And Installing Module: Step 1: Create a React application using the following command. npx create-react-app foldername Step 2: After creating your project folder i.e. foldername, move to it using the following command. cd foldername Step 3: After creating the ReactJS application, Install the required module using the following command: npm install semantic-ui-react Project Structure: It will look like the following. Step to Run Application: Run the application from the root directory of the project, using the following command. npm startExample 1: App.js import React from 'react' import { Container } from 'semantic-ui-react' const styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; styleLink.href = "https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css"; document.head.appendChild(styleLink); const App = () =>( <Container> <p> Semantic UI is a modern framework used in developing seamless designs for the website, Its gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. </p> </Container> ) export default App Output: Example 2: Filename: App.js App.js import React from 'react' import { Container } from 'semantic-ui-react' const styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; styleLink.href = "https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css"; document.head.appendChild(styleLink); const App = () =>( <Container fluid> <p> Semantic UI is a modern framework used in developing seamless designs for the website, Its gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. </p> </Container> ) export default App Output: Example 3: App.js import React from 'react' import { Container } from 'semantic-ui-react' const styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; styleLink.href = "https://cdn.jsdelivr.net/npm/semantic-ui/dist/semantic.min.css"; document.head.appendChild(styleLink); const App = () => ( <Container textAlign='right'> <Container textAlign='center'> <Container textAlign='left'>GeeksforGeeks</Container> GeeksforGeeks </Container> GeeksforGeeks </Container> ) export default App Output: Reference: https://react.semantic-ui.com/elements/container Comment More infoAdvertise with us Next Article ReactJS Semantic UI List Element T taran910 Follow Improve Article Tags : Web Technologies ReactJS Semantic-UI Similar Reads ReactJS Semantic UI divider Element Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use the divider element in Re 2 min read ReactJS Semantic UI button Element Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS and jQuery to incorporate in different frameworks. In this article, we will know how to use button element in ReactJS Sema 2 min read ReactJS Semantic UI Menu Collections Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use Menu Collections in React 3 min read ReactJS Semantic UI Rail Element Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use rail element in ReactJS S 2 min read ReactJS Semantic UI List Element Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use the List element in React 2 min read ReactJS Semantic UI Step Element Semantic UI is a modern framework used in developing seamless designs for the website, It gives the user a lightweight experience with its components. It uses the predefined CSS, JQuery language to incorporate in different frameworks. In this article we will know how to use the step element in React 2 min read Like