SHARE
TWEET

Paul

a guest Mar 26th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import StockSearchFrom from './componets/StockSearchForm';
  2.  
  3.  
  4. const App = () => {
  5.   return <div>
  6.     <h1>Stock Viewer App</h1>
  7.     <StockSearchFrom />
  8.   </div>;
  9.  
  10. }
  11. let reactContainer = document.querySelector("#react-container");
  12.  
  13. ReactDOM.render(<App/>, reactContainer);
  14.  
  15. const StockSearchFrom = (props) => {
  16.   return <div>
  17.     <h2>Stock Search Form</h2>
  18.     <form className="frm symbol">
  19.       <label htmlFor="symbol">Ticker Symbol</label>
  20.       <input type="text" id="symbol" name="symbol"/>
  21.       <button type="submit">View</button>
  22.     </form>
  23.   </div>;
  24. }
  25.  
  26. export default StockSearchFrom;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top