Skip to content

Adjacent JSX elements must be wrapped in an enclosing tag #44

Description

@ichicoding

I'm getting this error at the end of Chapter 2 in App.js on <input placeholder="start"... and <button onClick...
How do I fix this?

//Add input fields to the UI for user input

 <input
   onChange={e => updateInputValues('limit', e.target.value)}
   placeholder="limit"
 />
 <input
   placeholder="start"
   onChange={e => updateInputValues('start', e.target.value)}
 />


 //add button to the UI to give user the option to call the api
 <button onClick={fetchCoins}>Fetch Coins</button>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions