Component 'square'
This commit is contained in:
		
							parent
							
								
									6bee65d627
								
							
						
					
					
						commit
						3a9701411c
					
				
							
								
								
									
										21
									
								
								src/App.js
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								src/App.js
									
									
									
									
									
								
							@ -1,24 +1,11 @@
 | 
			
		||||
import logo from './logo.svg';
 | 
			
		||||
import './App.css';
 | 
			
		||||
 | 
			
		||||
function App() {
 | 
			
		||||
  return (
 | 
			
		||||
    <div className="App">
 | 
			
		||||
      <header className="App-header">
 | 
			
		||||
        <img src={logo} className="App-logo" alt="logo" />
 | 
			
		||||
        <p>
 | 
			
		||||
          Edit <code>src/App.js</code> and save to reload.
 | 
			
		||||
        </p>
 | 
			
		||||
        <a
 | 
			
		||||
          className="App-link"
 | 
			
		||||
          href="https://reactjs.org"
 | 
			
		||||
          target="_blank"
 | 
			
		||||
          rel="noopener noreferrer"
 | 
			
		||||
        >
 | 
			
		||||
          Learn React
 | 
			
		||||
        </a>
 | 
			
		||||
      </header>
 | 
			
		||||
    </div>
 | 
			
		||||
  <>
 | 
			
		||||
    <button className="square">X</button>
 | 
			
		||||
    <button className="square">X</button>
 | 
			
		||||
  </>
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -11,3 +11,18 @@ code {
 | 
			
		||||
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
 | 
			
		||||
    monospace;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.square {
 | 
			
		||||
  background: #fff;
 | 
			
		||||
  border: 1px solid #999;
 | 
			
		||||
  float: left;
 | 
			
		||||
  font-size: 24px;
 | 
			
		||||
  font-weight: bold;
 | 
			
		||||
  line-height: 34px;
 | 
			
		||||
  height: 34px;
 | 
			
		||||
  margin-right: -1px;
 | 
			
		||||
  margin-top: -1px;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  width: 34px;
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user