mirror of
https://github.com/aleleba/chartjs-2-react.git
synced 2025-07-25 23:18:20 -06:00
Se implementa la libreria de create-react-library para que funcione la libreria.
Se sube a version 1.0.6 Se sube a GitHub 1.0.6
This commit is contained in:
14
example/src/App.js
Normal file
14
example/src/App.js
Normal file
@ -0,0 +1,14 @@
|
||||
import React, { Component } from 'react'
|
||||
|
||||
import { RadialGaugue } from 'chart-2-react'
|
||||
|
||||
export default class App extends Component {
|
||||
render () {
|
||||
return (
|
||||
<div style={{maxWidth: '600px', marginTop: '25px'}}>
|
||||
<h3 style={{textAlign: 'center'}}>RadialGaugue Component:</h3>
|
||||
<RadialGaugue />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
5
example/src/index.css
Normal file
5
example/src/index.css
Normal file
@ -0,0 +1,5 @@
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: sans-serif;
|
||||
}
|
7
example/src/index.js
Normal file
7
example/src/index.js
Normal file
@ -0,0 +1,7 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom'
|
||||
|
||||
import './index.css'
|
||||
import App from './App'
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'))
|
Reference in New Issue
Block a user