This package has been deprecated

Author message:

Please use fable-react instead

fable-import-react

0.5.2 • Public • Published

fable-import-react

Fable bindings for React

Installation

$ npm install --save react react-dom fable-core
$ npm install --save-dev fable-import-react

Usage

In a F# project (.fsproj)

  <ItemGroup>
    <Reference Include="node_modules/fable-core/Fable.Core.dll" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="node_modules/fable-import-react/Fable.Import.React.fs" />
    <Compile Include="node_modules/fable-import-react/Fable.Helpers.React.fs" />
  </ItemGroup>

In a F# script (.fsx)

#r "node_modules/fable-core/Fable.Core.dll"
#load "node_modules/fable-import-react/Fable.Import.React.fs"
#load "node_modules/fable-import-react/Fable.Helpers.React.fs"
 
open Fable.Core
open Fable.Import
module R = Fable.Helpers.React
open R.Props

Package Sidebar

Install

npm i fable-import-react

Weekly Downloads

3

Version

0.5.2

License

Apache-2.0

Last publish

Collaborators

  • alfonsogarciacaro