-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
46 lines (37 loc) · 958 Bytes
/
Copy pathmain.js
File metadata and controls
46 lines (37 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import React from'react'
import ReactDOM from 'react-dom'
import {range}from D3;
//.enter() //this happens fromt hecode snippets if you type d3
// .append('line')
// .attr('x1', )
// .attr('y1', )
// .attr('x2', )
// .attr('y2', );
import { checkPropTypes } from 'prop-types'
console.log(arc)
console.log(ReactDOM);
const width=160 //we can use math on these constants
const height=160
const array = range(5 * 3);
const App =()=>array.map(()=>(
<Face
width={width}
height={height}
centerX = {width/2}
centerY ={height/2}
strokeWidth ={10}
eyeOffsetX = {90}
eyeOffsetY ={100}
eyeRadius= {5 + Math.random()* 10}
mouthWidth ={20}
mouthRadius ={200}/>
));
console.log(mouthArch);
const rootElement = document.getElementById("root");
// const root = createRoot(rootElement);
// root.render(
// <StrictMode>
// <App />
// </StrictMode>
// );
ReactDOM.render(<App />, rootElement);