Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
cómo mostrar el valor ascii para el texto del componente del botón en reaccionar js

He estado tratando de mostrar el símbolo de marca ASCII para el texto de mi botón, pero parece que no puedo hacer que funcione correctamente, solo muestra la cadena &#10004 dentro del botón. Alguien sabe cómo solucionarlo. ?

Aquí están mis dos componentes:

Artículo:

 import logo from './logo.svg'; import './App.css'; import { Button } from './Button'; import React, { useState } from 'react'; const Item = () => { const [item, setItem] = useState(""); return ( <div className="Item"> <input type="text" value={item} label="Enter item scheduled" onChange={(evt) => { setItem(evt.target.value); }} /> <Button className="CompleteButton" text="&#10004"/> <h3>Your item scheduled is: {item}</h3> </div> ); } export {Item};

Botón:

 import React from 'react'; const Button = (props) => { return ( <button className={props.className} onClick={props.onClick}>{props.text}</button> ) } export {Button}
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Creo que puedes simplemente pegar la marca en el código (✓).

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!