1. 1. Introduction
  2. 2. Language Elements
    1. 2.1. let Binding & Mutation
    2. 2.2. Type
    3. 2.3. Primitive Types
      1. 2.3.1. Unit
      2. 2.3.2. String
      3. 2.3.3. Char
      4. 2.3.4. Boolean
      5. 2.3.5. Integer
      6. 2.3.6. Float
      7. 2.3.7. Regular Expression
      8. 2.3.8. Conversion
    4. 2.4. if else
    5. 2.5. Loops
    6. 2.6. Function
      1. 2.6.1. Optional Arguments(Rescript)
      2. 2.6.2. Optional Arguments(OCaml)
      3. 2.6.3. Function Cheatsheet
    7. 2.7. Array
    8. 2.8. List
    9. 2.9. Tuple
    10. 2.10. Record
    11. 2.11. Object
    12. 2.12. Variant
      1. 2.12.1. Example(blang)
    13. 2.13. Polymorphic Variant
    14. 2.14. Extensible Variant
    15. 2.15. Exception
      1. 2.15.1. JS Exception
    16. 2.16. Option, Null, Undefined
    17. 2.17. Pipe
    18. 2.18. Lazy
    19. 2.19. Patterns
    20. 2.20. Module
      1. 2.20.1. Module Type
      2. 2.20.2. Functor
      3. 2.20.3. First-class Module
    21. 2.21. Decorator
  3. 3. Binding
    1. 3.1. Global JS Values
    2. 3.2. Import from/Export to JS
      1. 3.2.1. Bind to default or named export
      2. 3.2.2. Bind to default or named exported JS Class
    3. 3.3. Bind to JS Object
      1. 3.3.1. Bind using Rescript record
      2. 3.3.2. Bind JS array to Rescript record
      3. 3.3.3. Bind using Rescript object
      4. 3.3.4. Bind with getter/setter
    4. 3.4. Bind to JS Function
      1. 3.4.1. Labeled Arguments
      2. 3.4.2. Object Method
      3. 3.4.3. Variadic Function
      4. 3.4.4. Polymorphic Variant (@unwrrap)
      5. 3.4.5. Constrain Arguments
      6. 3.4.6. Special-case: Event Listeners
      7. 3.4.7. Fixed Arguments
      8. 3.4.8. Ignore Arguments
      9. 3.4.9. Curry and Uncurry
      10. 3.4.10. Modeling this-based callbacks
      11. 3.4.11. Bind null or undefined return value to Option
    5. 3.5. JSON
  4. 4. Generate Converters & Helpers
    1. 4.1. @deriving(accessors)
    2. 4.2. @deriving(jsConverter)
    3. 4.3. @deriving({jsConverter: newType})
    4. 4.4. @obj
    5. 4.5. @deriving(abstract)
  5. 5. ReScriptReact (V3)
    1. 5.1. Basic Elements
    2. 5.2. Component
      1. 5.2.1. Low level APIs to create components
      2. 5.2.2. Misc
    3. 5.3. Arrays and Keys
    4. 5.4. Refs and the DOM
      1. 5.4.1. Manage a list of Refs using a ref callback
      2. 5.4.2. Forwarding Refs
    5. 5.5. Context
    6. 5.6. Styling
  6. 6. Resources

Rescriptocampus

Bind to JS Object

References

  • external
  • @module
  • @as
  • @set
  • @get
  • @set_index
  • @get_index