summaryrefslogtreecommitdiffstats
path: root/finished-application/frontend/components/Dump.js
blob: f281281169a36d46407994b952a9eb05c3fab439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const Dump = props => (
  <div
    style={{
      fontSize: 20,
      border: '1px solid #efefef',
      padding: 10,
      background: 'white',
    }}
  >
    {Object.keys(props).map(prop => (
      <pre key={prop}>
        <strong style={{ color: 'white', background: 'red' }}>{prop} 💩</strong>
        {JSON.stringify(props[prop], '', ' ')}
      </pre>
    ))}
  </div>
);

export default Dump;