Tại sao viết React có sử dụng bootstrap mà bị lỗi css?

Em đang học React Js làm theo hướng dẫn, những boostrap của em có vấn đề nó vẫn chạy nhưng css của nó lại không có

mặc dù em đã cài thư viện Làm thế nào để fix lại à.

import React, { Component } from 'react';
import './App.css';
import Product from './components/Product'
class App extends Component {

  onClick(){
    console.log('DAY LA APP COMPONENTS');

  }
  onClick2(text){
    console.log(text);

  }



  render() {
      var products = [ 
          {
            id: 1,
            name: "Apple Iphone 6 Plus 16GB",
            price: "5000000",
            image: 'https://cdn.tgdd.vn/Products/Images/42/92962/iphone-6-32gb-gold-hh-600x600-600x600-600x600.jpg',
            status: true
          },
          {
            id: 2,
            name: "Apple Iphone 7 Plus 16GB",
            price: "8900000",
            image: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAPDxUPEBAVEA8QFhUQFRUQFRUQEBUQFRUWFhUVFRUYHSggGBolHBUVITEhJSkrLi46FyA4OTMsNygtLisBCgoKDg0OGhAQGi0eHR8tLS0tLS0tKzIuLSstLS0wLS4tLS0rLy8rKzAwMistKy0rLS0tKzUyLS0tListNTcuK//AABEIAMIBAwMBEQACEQEDEQH/xAAcAAEAAQUBAQAAAAAAAAAAAAAAAgEDBQYHBAj/xABHEAABAwEFAwUJDwQBBQAAAAABAAIDEQQFEiExBkGRExRRYXEHIiMyUoGSsbIVFiQ1QlNUcnOhwdHS4fAXJWKDMzREY5Oi/8QAGgEBAQEAAwEAAAAAAAAAAAAAAAECAwQFBv/EADERAQABAwMCAwgCAQUBAAAAAAABAgMRBBIxIUEFUaETFCJhcZHB8IHRQjJTYrHhFf/aAAwDAQACEQMRAD8A7igICAgICCxbLUyJhe80A4k9AQa/aNoJjUsY1jdavzNOn+BXCZYWxbeNnlMMVphfIMsIpXI0NMs8+hBlPdq1dLOH7JgBfdq6WcP2TAr7tWrpZw/ZMGT3ZtXSzh+yYFfdi1f4cP2TBlX3XtfSz+eZMGT3VtfSzh+yYMrct5W0jJ4H1Qw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sOfOHmnWPyVN0o++G2fSH8VDdJ74LX8+/iEN0qe+C1/Pv4pkzJ7v2v59/EJkzL3bMWp8t4QPkcXu5SMVOtA5EfYSAgICAgICAgICAgICDm23cBbbgTXBNG0j6zagj1cVYRhObN6+Koc2b18UDm7evigc3b18UDmzevigrzZvXxQOat6+KBzVvXxQU5s3r4oHNm9fFBitppGw2WQ1+Q8/dl96g4qoq7ydWYhuND1AgYT60ErEO/B3Cpd0YaZ/l50FhAQEBBsewVhdPeFnjaKl0jfRGp40QfYCAgICAgICAgICAgICDE7R3Iy2xYCcD2nEx4FS134g9CDQ7ZcttgNHwGQaB0VXg+YZjzhVHm5vaPosvoO/Sgc3tH0WX0H/pQOb2j6LL6D/0qihinGtll9B/6VAEc50s0voP/SglyFo+iy+i79KBze0fRZfRd+lBR0FoGfNZfQf+lBakbOBXm8v/AK5HfcGoNH2tu+9LZ4OGwTiKtS5zMJeRpkdG70Gse8O9foM3AfmooNh72bnzKYbtP3QUGxF66cymz/xQPeHev0Gb0R+aB7xL1+gzej+6CnvFvX6DN6KD02Luc3tK8MbY5Gk+WC1vndoEHbu5Z3MxdZ5zaSH2twoA3NsbTqB1oOlICAgICAgICAgICAgICAgKAqCAgKAqCAgKAqCCiAgqgKAqCAgICAgICAgIP//Z",
            status: true
          },
          {
            id: 3,
            name: "Apple Iphone 8 Plus 32GB",
            price: "5200000",
            image: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBw8PEhAQEA8PDw8PEBUPDw8NEA8PDw8QFRIWFxUVFhYYHSggGBolGxUVITEhJSkrLi4uFx81ODMsNygtLisBCgoKDg0OGhAQGC0dHR0wLS0tLS0tLS0tLS0tKy0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLf/AABEIAOEA4QMBEQACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAABQIEAQMGBwj/xABREAABAwIBBQsHBwgGCwAAAAABAAIDBBEFEiExUXEG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vERcckawCOEoy+5OF2LEbw4BzSHNcA5pGcEEXBCsVwSQAgBAFkBh+g7D3IEV8IN4mHWXH/O5Vhsi9nUy6rFAQAgBACAWY6ODG/zJQT2gtH3kLOzbJrTvgW1A4Tuk3Gw5wqMutjXZCQsgMIDNkAWQBZAFkBcwZwEjh5zQR9//AK9atB8ylnSOVqYggBACAEBpZTtD3yfrPaxh6rMoget7vWowTk3KSCELAAABYDMAMwAQE0AIAQAgITOAa4nRZRLYlbkcNZaKMWtwb21Xz/vUR2Jk/UyyrFQQAgBACA11EIe1zHaHCxUNZWCU8PJzlWx8OaQZhmbKOK4c1zzHoP3rBprkdKxPmjSJQdfYLplEuLM74NTvZKZRHC/YN86HeoplDhfsG+dDvZKZQw/YN86HeyUyhh+wb4NTvUUyMMN86HeoplDD9jLZS0hzQ7KbnGY2OsFM4GO2B3S4ix4F+C7na4WK1VifcxlVKJa3xusK2UUww3xusJlEYDfG6wmUMBvjdYTKJwyLyx2Yn1EgjtR4YWUVm0rMoOdLK/JN2tfJwAeqLX7bqML3J5+xb3xusKcorhhvjdYTKJwG+N1hMojAb43WEyicEZKhjc5cAEyOFsrG89gARDe7nHNvnQOjp1KvORfp+4wVzMygBACACgMIAKgEH6HbCktgtzzvEeUdtXE9z0q+kroXMoAQgkzSNqAvlSVKMuk7SoLEQiIlsYl5tqqW/wCI4p+KFoZI2hCQKAwVAJMUrchk36CpINQUFgUAyhIIDdhfKjarR3M7Ok6pdXY4GZUkggAIDKA//9k=",

            status: true
          },


      ];
      let elements = products.map((product, index) => { 
        let result = '';

        if( product.status) {
            result= 
                      <Product 

                          key={ product.id }
                          price={ product.price }
                          image={ product.image }
                      >
                          { product.name }

                      </Product>

           }
           return result;
      });




        return(
  <div>
         
          <nav className="navbar navbar-inverse">
               <div className="container-fluid">
                 <a className="navbar-brand">Props</a>

               </div>
           </nav>
           <div className="container">
              <div className="row">
                  <div className="row">
                    <div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                   
                    
                      <div className="form-group">
                        <label for="">label</label>
                        <input type="text" className="form-control" />
                      </div>
                    
                      
                    
                      <button type="submit" className="btn btn-primary">Luu</button>
                
                    </div>
                    <div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                       { elements  }
                     </div>
                  <div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                    <button type="button" className="btn btn-warning" onClick={ this.onClick }>
                         Click me! 
                    </button>
                    <button type="button" className="btn btn-warning" onClick={ () => {this.onClick2('ABC')} }>
                         Click me 2 ! 
                    </button>
                    
                  </div>
                  
                </div>
              </div>
              
            </div> 
        </div>  

       );
  }
}

export default App;

Vậy bạn làm thế nào mà gọi là “có sử dụng bootstrap”?

3 Likes

Cài thư viện thì phải sài component của thư viện đấy như này chứ như bạn viết là đang sài bootstrap như code html rồi.

import React from 'react';
import { Nav, NavItem, NavLink } from 'reactstrap';

export default class Example extends React.Component {
  render() {
    return (
      <div>
        <p>List Based</p>
        <Nav vertical>
          <NavItem>
            <NavLink href="#">Link</NavLink>
          </NavItem>
          <NavItem>
            <NavLink href="#">Link</NavLink>
          </NavItem>
          <NavItem>
            <NavLink href="#">Another Link</NavLink>
          </NavItem>
          <NavItem>
            <NavLink disabled href="#">Disabled Link</NavLink>
          </NavItem>
        </Nav>
        <hr />
        <p>Link based</p>
        <Nav vertical>
          <NavLink href="#">Link</NavLink> <NavLink href="#">Link</NavLink> <NavLink href="#">Another Link</NavLink> <NavLink disabled href="#">Disabled Link</NavLink>
        </Nav>
      </div>
    );
  }
}
5 Likes

Có thể bạn thiếu import bootstrap vào file index.js rồi nhé.Adding Bootstrap

2 Likes

em chưa nhúng boostrap vào file index.html hihi. thanks các anh ạ, em fix đc rồi

2 Likes
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?