Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Data Science
  3. Question
Data Science

How to fix Parsing error: Unexpected token?

Asked by Rose Knox Apr 12, 2021 1.5K views 1 answer
Share

About this question

I am trying to change my text color but I keep on getting Parsing error: Unexpected token as an error but don't know why can someone point out where my error is and how I would be able to fix that?

This is the code:

import React from 'react';
import react, { Component } from 'react'
import { Plateform, StyleSheet, view,text } from 'react-native';
**Here is where I am trying to change the text color everything seems to be in place but I keep on getting that unexpected token error?**
function Header() {
  return (

    

    

      

        

        

        

        

        

About

        

Cars

        

Contact

        

Search

      

      

      

  );
}
export default Header extends Component;
./src/components/header.js
Error which I am getting is:
  Line 10:78:  Parsing error: Unexpected token
     return (

       

    

                                                                                   ^

         

          

           

Your answer

1 Answer

More Data Science discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Data Science Blogs

Guides, tips and career advice on Data Science from JanBask experts.