简体   繁体   中英

React blank page when I try to import from another component

The react app was working perfectly until I tried to import AlertDialogSlide from confirmation.js component. There are no errors while compiling but I have a blank page.

import './App.css';
import StarRating from './StarRating';
import StarRating2 from './StarRating2';
import StarRating3 from './StarRating3';
import { TextArea } from 'semantic-ui-react';
import AlertDialogSlide from './confirmation';

function App() {
  return (
    
    <form>
    
    <div className="App">
     <img src='solavievelogo.png'></img>
      <hr/>
      <h2>Leave a feedback!</h2>
     <StarRating></StarRating>
     <hr2/>
     <StarRating2></StarRating2>
     <hr2/>
     <StarRating3></StarRating3>
     <hr2/>
     <AlertDialogSlide></AlertDialogSlide>
     <p>Please leave a comment about your experience below:</p>
     <TextArea cols="40" rows="5" placeholder=' Type your comment here...' ></TextArea>
     <br/>
    <button class="Button" type="submit" ><span class="Button-inner">SEND FEEDBACK</span> </button>

    </div>

    </form>
    
  );
}

export default App;

check out your confirmation.js file. Maybe you make some mistake on that. I run this code after commenting confirmation.js file, it's working properly.

If you still have a problem share your confirmation.js file... we are ready to help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM