javascript - React, using emojis in a drop down - Stack Overflow

admin2025-01-31  7

I've been working on a little game in react and part of the game allows for the player to set some settings before starting. It's a turn-based tag game, four players chase different tokens around the map, while avoiding the one player labeled "it".

I have the following render method for a select option:

render() {
    return (
        <div>
            <form onSubmit={this.createPlayers} ref="form">
                <label htmlFor="goodies">Choose a Goody!</label>
                <select name="goodies" id="goodies">
                    <option value="donut">
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1738303024a66014.html

最新回复(0)