Git Product home page Git Product logo

react-redux-geogebra's Introduction

react-redux-geogebra

Hi Everyone. Welcome to my second published package for react.js. I'm going to show you an easy way to embed GeoGebra Maths App to your React project.
This is not an official GeoGebra-project.

Made with create-react-library

NPM

NPM JavaScript Style Guide

Demo

Try the demo: https://saunaaa.github.io/react-redux-geogebra

Install

npm install --save react-redux-geogebra

or

yarn add react-redux-geogebra

Usage

GeoGebra Component

import React from 'react'

import { ReactGeoGebra } from 'react-redux-geogebra'

const App = () => {
  return (
    <ReactGeoGebra
      width='800'
      height='600'
      showMenuBar
      showToolBar
      showAlgebraInput
    />
  )
}

Provider

To use the provided hooks wrap the component in the ReactGeoGebraProvider Component

import { ReactGeoGebraProvider } from 'react-redux-geogebra'

ReactDOM.render(
  <ReactGeoGebraProvider>
    <App />
  </ReactGeoGebraProvider>,
  document.getElementById('root')
)

Hooks

import {
  useStoreState,
  useStoreActions,
  useTypedSelector,
  useDispatch
} from 'react-redux-geogebra'

Props and Parameters

Default Props

ReactGeoGebra.defaultProps = {
  appName: 'classic',
  width: 800,
  height: 600,
  showToolBar: true,
  showAlgebraInput: true,
  showMenuBar: true
}

GeoGebra Props

A list of the GeoGebra props is available at the GeoGebra-website.

GeoGebra App API

To interact with the embedded GeoGebra app you can use the GeoGebra-API.

License

Check out the GeoGebra license agreement on their webpage.
https://www.geogebra.org/license

MIT © saunAAA

Support Me?

just buy me a coffee ☕️
Buy Me A Coffee

react-redux-geogebra's People

Contributors

pfaffmann avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.