How to use htmr - 7 common examples

To help you get started, we’ve selected a few htmr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DanWebb / danwebb.co / src / pages / article.js View on Github external
{article.image && }
			
			{article.image && }
			
			
			{article.image && }
			
			
		

		

		{article.featuredImage ?  : }

		<content>
			
			<details title="{article.title}">
			{article.related &amp;&amp; (
				 article.related.indexOf(a.handle) &gt; -1)}/&gt;
			)}
		
	
);
</details></content>
github react-static / react-static / examples / markdown / src / containers / Post.js View on Github external
export default withRouteData(({ post }) =&gt; (
  <div>
    {'&lt;'} Back
    <br>
    <h3>{post.title}</h3>
    {convert(post.contents)}
  </div>
))
github DanWebb / danwebb.co / src / pages / home.js View on Github external
const Home = ({projects, testimonials, latestArticles}) =&gt; (
	
		
		
		
			{convert(testimonials[0].contents)}
		
		
		
			{convert(testimonials[1].contents)}
		
		
		
	
);
github react-static / react-static / examples / markdown / src / pages / index.js View on Github external
export default withRouteData(({ jdown, reactStatic }) =&gt; (
  <div>
    <section>{convert(reactStatic.contents)}</section>
    <section>{convert(jdown.contents)}</section>
  </div>
))
github tronscan / tronscan-frontend / src / components / blockchain / Compiler / CompilerConsole.js View on Github external
{
                           (log.type == "info" &amp;&amp; log.class == "broadcast")&amp;&amp;
                           <div style="{{color:">
                               Broadcast transaction success!&nbsp;
                               
                               <br>
                               Waiting for confirm from Tron blockchain
                           </div>
                       }

                       {
                           (log.type == "success" &amp;&amp; log.class == "deploy") &amp;&amp;
                           <div style="{{color:">
                               {convert(log.content)}
                           </div>
                       }
                       {
                           (log.type == "error" &amp;&amp; log.class == "deploy") &amp;&amp;
                           <div style="{{color:">
                               {convert(log.content)}
                           </div>
                       }
                       {
                           (log.type == "error" &amp;&amp; log.class == "info-error") &amp;&amp;
                           <div style="{{color:">
                               {convert(log.content)}
                               <span>
                                   <span> this.props.deploy()} className="info-btn ml-2"&gt;try again</span></span></div>
github react-static / react-static / examples / markdown / src / pages / about.js View on Github external
export default withRouteData(({ about }) =&gt; (
  <div>{convert(about.contents)}</div>
))
github listcommunity / support / src / ListContent.js View on Github external
render() {
    let content = <div>Loading updates…</div>;

    if (this.props.text) {
      const wrapper = convert(this.props.text, {
        map: {
          a: CustomLink,
          img: CustomImg,
        },
      });
      content = wrapper.props.children[0];
    }

    return (
      
        <div id="table-of-contents">
        <div id="start-of-content">
        <div id="contents">

        </div></div></div>

htmr

Simple and lightweight (< 2kB) HTML to React converter that works in server and browser

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis

Popular htmr functions