https://github.com/poetic/html-to-react-converter
Convert html files to a react app
https://github.com/poetic/html-to-react-converter
Last synced: 3 months ago
JSON representation
Convert html files to a react app
- Host: GitHub
- URL: https://github.com/poetic/html-to-react-converter
- Owner: poetic
- Created: 2016-11-14T16:29:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T17:56:36.000Z (over 8 years ago)
- Last Synced: 2025-02-19T00:48:38.718Z (4 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 3
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.TODO.md
Awesome Lists containing this project
README
# TODO
- NEXT:
- the bootstrap plugin to provide skeletion for other plugins- stage 1: convert files into react components
- import all the config files, parse as config ( not part of plugin )
- for each hrc/pages/[PageName].json, we generate components in destination
- preprocess file and add data-component-name in it, (N * M)
N is number of components, M is number of nodes
we can implement one pass solution to boost performance to (M)
pick components using these tags using one traverse (M)
- we can save temp files and use dif to boost performance
- we can let user mark component as local boost performance
- provide hooks in different levels so that we have a plugin systems
- each node
- each file and component, they may be the same or file contains component
- plugins:
- className
- style
- props (later)- stage 2: add container components and resolve dependencies
- global components for all pages? config.options.globalComponents?- stage 3: change urls for react router