Let's play Spiral FizzBuzz!
index.js
getSpiralStyle.js
README.md
index.js
import React from 'react'
import ReactDOM from 'react-dom'
import { getSpiralStyle } from './getSpiralStyle.js'
const createElement = React.createElement

let boxes = [
  <div style={getSpiralStyle(0)} key='0'>1</div>,
  <div style={getSpiralStyle(1)} key='1'>2</div>,
  <div style={getSpiralStyle(2)} key='2'>
    <strong>Fizz</strong>
  </div>,
]

ReactDOM.render(
  boxes,
  document.getElementById('root')
)