Code Blocks

July 8th, 2020

Yes! Some code!

Here is the Dump component!

1import React from 'react'
2const Dump = props => (
3 <div
4 style={{
5 fontSize: 20,
6 border: '1px solid #efefef',
7 padding: 10,
8 background: 'white',
9 }}
10 >
11 {Object.entries(props).map(([key, val]) => (
12 <pre key={key}>
13 <strong style={{ color: 'white', background: 'red' }}>
14 {key} 💩
15 </strong>
16 {JSON.stringify(val, '', ' ')}
17 </pre>
18 ))}
19 </div>
20)
21export default Dump