kopia lustrzana https://github.com/badgen/badgen.net
Fix missing key for react list
rodzic
b03c81c20b
commit
11fd4bebf6
|
@ -75,7 +75,7 @@ const iconExamples = () => {
|
|||
return Object.keys(icons).map(icon => {
|
||||
const url = `/badge//${icon}?icon=${icon}`
|
||||
return (
|
||||
<a href={url}>
|
||||
<a href={url} key={icon}>
|
||||
<img src={url} />
|
||||
<style jsx>{`
|
||||
a {
|
||||
|
|
1
index.ts
1
index.ts
|
@ -30,6 +30,7 @@ const server = http.createServer(async (req, res) => {
|
|||
return serve404(req, res)
|
||||
})
|
||||
|
||||
// Auto run
|
||||
if (require.main === module) {
|
||||
server.listen(3000)
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue