UNPKG

html-to-react

Version:

A lightweight library that converts raw HTML to a React DOM structure.

17 lines (13 loc) 516 B
'use strict'; const ShouldProcessNodeDefinitions = require('./should-process-node-definitions'); const ProcessNodeDefinitions = require('./process-node-definitions'); function ProcessingInstructions() { const processNodeDefinitions = new ProcessNodeDefinitions(); return { defaultProcessingInstructions: [{ shouldProcessNode: ShouldProcessNodeDefinitions.shouldProcessEveryNode, processNode: processNodeDefinitions.processDefaultNode, },], }; }; module.exports = ProcessingInstructions;