react-task-lib
/
2.0.6
react-task-lib 2.0.6
Install from the command line:
Learn more about npm packages
$ npm install @france-ioi/react-task-lib@2.0.6
Install via package.json:
"@france-ioi/react-task-lib": "2.0.6"
About this version
Library to create France IOI tasks with React.js
yarn add @france-ioi/react-task-lib
To be able to download the library (because it is hosted on Github and not NPM), you have to setup your ~/.npmrc
file:
registry=https://registry.npmjs.org/
@france-ioi:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=your_token
your_token
has to be replaced by a Github token you have to generate here: https://github.com/settings/tokens/new
You have to check at least read:packages
but you are also invited to check write:packages
if you want to contribute to this library.
import React, {Component} from 'react';
import SpecificComponent from 'react-task-lib';
import 'react-task-lib/dist/index.css';
class Example extends Component {
render() {
return <SpecificComponent />
}
}
You can find an example usage under the example/
folder.
You can make the example work in your browser by doing yarn start
into the example
folder.